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

Method getBoundActions

frontend/public/swagger-ui-bundle.js:31502–31530  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

31500 })
31501 }
31502 getBoundActions(s) {
31503 s = s || this.getStore().dispatch
31504 const o = this.getActions(),
31505 process = (s) =>
31506 'function' != typeof s
31507 ? objMap(s, (s) => process(s))
31508 : (...o) => {
31509 var i = null
31510 try {
31511 i = s(...o)
31512 } catch (s) {
31513 i = { type: rt, error: !0, payload: (0, Qe.serializeError)(s) }
31514 } finally {
31515 return i
31516 }
31517 }
31518 return objMap(o, (o) =>
31519 (function bindActionCreators(s, o) {
31520 if ('function' == typeof s) return bindActionCreator(s, o)
31521 if ('object' != typeof s || null === s) throw new Error(formatProdErrorMessage(16))
31522 const i = {}
31523 for (const a in s) {
31524 const u = s[a]
31525 'function' == typeof u && (i[a] = bindActionCreator(u, o))
31526 }
31527 return i
31528 })(process(o), s)
31529 )
31530 }
31531 getMapStateToProps() {
31532 return () => Object.assign({}, this.getSystem())
31533 }

Callers 1

Calls 5

getStoreMethod · 0.95
getActionsMethod · 0.95
objMapFunction · 0.85
bindActionCreatorFunction · 0.85
formatProdErrorMessageFunction · 0.85

Tested by

no test coverage detected