MCPcopy Create free account
hub / github.com/bytebase/bytebase / setArrayValue

Function setArrayValue

frontend/src/react/components/ExprEditor.tsx:1081–1090  ·  view source on GitHub ↗
(v: string[])

Source from the content-addressed store, hash-verified

1079 });
1080 };
1081 const setArrayValue = (v: string[]) => {
1082 doUpdate((group) => {
1083 const cond = group.args[operandIndex] as ConditionExpr;
1084 if (isNumberFactor(cond.args[0] as Factor)) {
1085 (cond.args as unknown[])[1] = v.map(Number);
1086 } else {
1087 (cond.args as unknown[])[1] = v;
1088 }
1089 });
1090 };
1091
1092 if (inputType === "INPUT") {
1093 if (isNumberValue) {

Callers

nothing calls this directly

Calls 2

isNumberFactorFunction · 0.90
doUpdateFunction · 0.85

Tested by

no test coverage detected