fix: update formula op

This commit is contained in:
gazedreamily 2023-06-28 09:54:17 +08:00
parent 5d4e2f835e
commit f1358c25b1
2 changed files with 1 additions and 12 deletions

View File

@ -1681,6 +1681,7 @@ export function execFunctionGroup(
// console.timeEnd("4");
ctx.formulaCache.execFunctionExist = undefined;
groupValuesRefresh(ctx);
}
function findrangeindex(ctx: Context, v: string, vp: string) {

View File

@ -3,7 +3,6 @@ import {
Canvas,
updateContextWithCanvas,
updateContextWithSheetData,
groupValuesRefresh,
handleGlobalWheel,
initFreeze,
Sheet as SheetType,
@ -238,17 +237,6 @@ const Sheet: React.FC<Props> = ({ sheet }) => {
}
}, [context, refs.canvas, refs.globalCache.freezen, setContext, sheet.id]);
/**
* Apply the calculation results
*/
useEffect(() => {
if (context.groupValuesRefreshData.length > 0) {
setContext((draftCtx) => {
groupValuesRefresh(draftCtx);
});
}
}, [context.groupValuesRefreshData.length, setContext]);
const onWheel = useCallback(
(e: WheelEvent) => {
setContext((draftCtx) => {