MCPcopy Index your code
hub / github.com/dataease/SQLBot / getConfigByUrl

Function getConfigByUrl

frontend/public/swagger-ui-bundle.js:34533–34553  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

34531 } = o
34532 return i(s)
34533 },
34534 getConfigByUrl = (s, o) => (i) => {
34535 const { specActions: a, configsActions: u } = i
34536 if (s) return u.downloadConfig(s).then(next, next)
34537 function next(u) {
34538 u instanceof Error || u.status >= 400
34539 ? (a.updateLoadingStatus('failedConfig'),
34540 a.updateLoadingStatus('failedConfig'),
34541 a.updateUrl(''),
34542 console.error(u.statusText + ' ' + s.url),
34543 o(null))
34544 : o(
34545 ((s, o) => {
34546 try {
34547 return fn.load(s)
34548 } catch (s) {
34549 return (o && o.errActions.newThrownErr(new Error(s)), {})
34550 }
34551 })(u.text, i)
34552 )
34553 }
34554 },
34555 get = (s, o) => s.getIn(Array.isArray(o) ? o : [o]),
34556 yn = {

Callers

nothing calls this directly

Calls 1

thenMethod · 0.45

Tested by

no test coverage detected