diff --git a/src/hooks/useServerUpdateRequiredMonitor.ts b/src/hooks/useServerUpdateRequiredMonitor.ts index fcff88394..4c35fa91c 100644 --- a/src/hooks/useServerUpdateRequiredMonitor.ts +++ b/src/hooks/useServerUpdateRequiredMonitor.ts @@ -40,6 +40,13 @@ const useServerUpdateRequiredMonitor = (draftSpecs: DraftSpecQuery[]) => { binding[collectionNameProp] ); + // If the collection is no longer there then we are probably applying a schema evolution so we + // should not require server update as we just got back from the server + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (!resourceConfig[collectionName]?.data) { + return false; + } + // Do a quick simple disabled check before comparing the entire object if ( // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition