mirror of
https://github.com/docmost/docmost.git
synced 2026-06-10 01:52:43 +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: () => {
|
||||
notifications.show({
|
||||
|
||||
@@ -222,6 +222,7 @@ export type UpdatePropertyInput = {
|
||||
propertyId: string;
|
||||
pageId: string;
|
||||
name?: string;
|
||||
type?: BasePropertyType;
|
||||
typeOptions?: TypeOptions;
|
||||
requestId?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user