MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / listOverriddenFields

Function listOverriddenFields

frontend/src/utils/forms/ChannelUtils.js:112–118  ·  view source on GitHub ↗
(channel)

Source from the content-addressed store, hash-verified

110
111// Human labels for the table's overrides indicator tooltip.
112export const listOverriddenFields = (channel) => {
113 if (!channel?.override) return [];
114 return OVERRIDABLE_FIELDS.filter((field) => {
115 const value = channel.override[field];
116 return value !== null && value !== undefined;
117 }).map((field) => OVERRIDE_FIELD_LABELS[field]);
118};
119
120// "Provider: <value>" subtext for auto-synced channels (null for manual).
121export const getProviderHint = (channel, field) => {

Callers 2

ChannelsTableFunction · 0.90

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected