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

Function setStringValue

frontend/src/react/components/ExprEditor.tsx:1067–1074  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

1065 };
1066
1067 const setStringValue = (v: string) => {
1068 doUpdate((group) => {
1069 const cond = group.args[operandIndex] as ConditionExpr;
1070 (cond.args as unknown[])[1] = isNumberFactor(cond.args[0] as Factor)
1071 ? Number(v)
1072 : v;
1073 });
1074 };
1075 const setNumberValue = (v: number) => {
1076 doUpdate((group) => {
1077 const cond = group.args[operandIndex] as ConditionExpr;

Callers 1

ValueInputFunction · 0.85

Calls 2

isNumberFactorFunction · 0.90
doUpdateFunction · 0.85

Tested by

no test coverage detected