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

Function setBooleanValue

frontend/src/react/components/ExprEditor.tsx:1047–1052  ·  view source on GitHub ↗
(v: boolean)

Source from the content-addressed store, hash-verified

1045 const getBooleanValue = (): boolean =>
1046 typeof expr.args[1] === "boolean" ? (expr.args[1] as boolean) : true;
1047 const setBooleanValue = (v: boolean) => {
1048 doUpdate((group) => {
1049 const cond = group.args[operandIndex] as ConditionExpr;
1050 (cond.args as unknown[])[1] = v;
1051 });
1052 };
1053
1054 const getStringValue = () => {
1055 const v = expr.args[1];

Callers 1

ValueInputFunction · 0.85

Calls 1

doUpdateFunction · 0.85

Tested by

no test coverage detected