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

Method updateMutations

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

Source from the content-addressed store, hash-verified

41305 }
41306 })
41307 }
41308 updateMutations(s) {
41309 'object' == typeof s.value &&
41310 !Array.isArray(s.value) &&
41311 this.allowMetaPatches &&
41312 (s.value = { ...s.value })
41313 const o = Wo.applyPatch(this.state, s, { allowMetaPatches: this.allowMetaPatches })
41314 o && (this.mutations.push(s), (this.state = o))
41315 }
41316 removePromisedPatch(s) {
41317 const o = this.promisedPatches.indexOf(s)

Callers 1

updatePatchesMethod · 0.95

Calls 2

isArrayMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected