mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
refactor(base): drop type-change invalidation branch from update-property mutation
This commit is contained in:
@@ -62,18 +62,6 @@ export function useUpdatePropertyMutation() {
|
||||
};
|
||||
},
|
||||
);
|
||||
|
||||
// Invalidate rows only for the synchronous (inline) path — the
|
||||
// HTTP response there is the "cells are migrated" signal. When the
|
||||
// server hands back a `jobId`, cells are still being rewritten; the
|
||||
// `base:schema:bumped` socket event is the canonical refetch
|
||||
// trigger in that case, and we'd only churn pages with old data by
|
||||
// refetching now.
|
||||
if (variables.type && !result.jobId) {
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ["base-rows", variables.baseId],
|
||||
});
|
||||
}
|
||||
},
|
||||
onError: () => {
|
||||
notifications.show({
|
||||
|
||||
Reference in New Issue
Block a user