diff --git a/apps/st/src/components/statistics/verification/generalVerification/FomulaDialog.tsx b/apps/st/src/components/statistics/verification/generalVerification/FomulaDialog.tsx index 1fbe87806..4bfacc36b 100644 --- a/apps/st/src/components/statistics/verification/generalVerification/FomulaDialog.tsx +++ b/apps/st/src/components/statistics/verification/generalVerification/FomulaDialog.tsx @@ -761,7 +761,7 @@ const FomulaDialog = ({ open, onOpenChange, data, trgtStatsCd, trgtStatsNm, allo onClick={() => { if (isUserDirectInputMode) { setFormulaSaveError(null); - const raw = formulaDisplaySegments.join(""); + const raw = formulaDisplaySegments.join("").replace(/\s+/g, ""); const wrapped = wrapWithBacktick(raw); const isEmptyFormula = raw.trim().length === 0; const refStats = resolveRefStatsForConfirm(isEmptyFormula);