mirror of
https://github.com/docmost/docmost.git
synced 2026-08-30 02:25:01 +08:00
feat(base): wire type field through UpdatePropertyInput + restore row invalidation
This commit is contained in:
@@ -62,6 +62,16 @@ export function useUpdatePropertyMutation() {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Path 1 (no rewrite) and Path 2 (inline rewrite): the HTTP
|
||||||
|
// response is the "cells migrated" signal — refetch row pages now.
|
||||||
|
// Path 3 sets `jobId`; we wait for the `base:schema:bumped` socket
|
||||||
|
// event instead so we don't churn pages with mid-conversion data.
|
||||||
|
if (variables.type && !result.jobId) {
|
||||||
|
queryClient.invalidateQueries({
|
||||||
|
queryKey: ["base-rows", variables.pageId],
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onError: () => {
|
onError: () => {
|
||||||
notifications.show({
|
notifications.show({
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ export type UpdatePropertyInput = {
|
|||||||
propertyId: string;
|
propertyId: string;
|
||||||
pageId: string;
|
pageId: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
type?: BasePropertyType;
|
||||||
typeOptions?: TypeOptions;
|
typeOptions?: TypeOptions;
|
||||||
requestId?: string;
|
requestId?: string;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user