mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-07 03:16:50 +08:00
fix: update formula op
This commit is contained in:
parent
5d4e2f835e
commit
f1358c25b1
@ -1681,6 +1681,7 @@ export function execFunctionGroup(
|
||||
// console.timeEnd("4");
|
||||
|
||||
ctx.formulaCache.execFunctionExist = undefined;
|
||||
groupValuesRefresh(ctx);
|
||||
}
|
||||
|
||||
function findrangeindex(ctx: Context, v: string, vp: string) {
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user