MCPcopy Create free account
hub / github.com/Botloader/botloader / textFieldValue

Function textFieldValue

frontend/src/components/GuildScriptPage.tsx:479–486  ·  view source on GitHub ↗
(rawValue: any, option: SettingsOption)

Source from the content-addressed store, hash-verified

477}
478
479function textFieldValue(rawValue: any, option: SettingsOption) {
480 const defaultValue = option.defaultValue ?? ""
481 if (rawValue === undefined || rawValue === null) {
482 return defaultValue
483 }
484
485 return rawValue
486}
487
488function booleanValue(rawValue: any, option: SettingsOption) {
489 const defaultValue = option.defaultValue ?? false

Callers 3

EditOptionNumberFieldFunction · 0.85
EditOptionTextFieldFunction · 0.85
EditOptionSelectSingleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected