fix(production) : prevent hydration and service failures
This commit is contained in:
+6
-1
@@ -770,7 +770,12 @@ async function executeCatalogSyncJob(initial: CatalogSyncJob, actor: AuditActor)
|
||||
}
|
||||
|
||||
export async function getCurrentCatalogVersion(): Promise<string | null> {
|
||||
return (await getCurrentCatalogState())?.version ?? null;
|
||||
try {
|
||||
return (await getCurrentCatalogState())?.version ?? null;
|
||||
} catch (error) {
|
||||
console.error("Unable to read the current catalog version", error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
async function getCurrentCatalogState() {
|
||||
|
||||
Reference in New Issue
Block a user