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

Function getProviderHint

frontend/src/utils/forms/ChannelUtils.js:121–131  ·  view source on GitHub ↗
(channel, field)

Source from the content-addressed store, hash-verified

119
120// "Provider: <value>" subtext for auto-synced channels (null for manual).
121export const getProviderHint = (channel, field) => {
122 if (!channel?.auto_created) return null;
123 const providerValue = channel[field];
124 const display =
125 providerValue === null ||
126 providerValue === undefined ||
127 providerValue === ''
128 ? '(empty)'
129 : providerValue;
130 return `Provider: ${display}`;
131};
132
133// FK provider hint that resolves the ID to a display name via lookup.
134export const getFkProviderHint = (channel, field, lookup) => {

Callers 2

ChannelFormFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected