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

Method getFieldError

frontend-common/src/api_client.ts:298–304  ·  view source on GitHub ↗
(field: string)

Source from the content-addressed store, hash-verified

296 }
297
298 getFieldError(field: string) {
299 if (this.response?.code === 4 && this.response?.extra_data) {
300 return this.response.extra_data.find((v) => v.field === field)?.msg
301 }
302
303 return undefined;
304 }
305}
306
307export interface ApiErrorResponse {

Callers 5

useSettingsFieldFunction · 0.80
getFieldErrorFunction · 0.80
createFunction · 0.80
saveFunction · 0.80
submitCreateScriptFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected