diff --git a/src/atoms/projectScope/rowyRun.ts b/src/atoms/projectScope/rowyRun.ts index 1699be63..bc6d35cd 100644 --- a/src/atoms/projectScope/rowyRun.ts +++ b/src/atoms/projectScope/rowyRun.ts @@ -117,8 +117,13 @@ export const rowyRunAtom = atom((get) => { /** Store deployed Rowy Run version */ export const rowyRunVersionAtom = atom(async (get) => { const rowyRun = get(rowyRunAtom); - const response = await rowyRun({ route: runRoutes.version }); - return response.version as string | false; + try { + const response = await rowyRun({ route: runRoutes.version }); + return response.version as string | false; + } catch (e) { + console.log(e); + return false; + } }); /** diff --git a/src/components/TableModals/ExtensionsModal/utils.ts b/src/components/TableModals/ExtensionsModal/utils.ts index e85bd207..117ef381 100644 --- a/src/components/TableModals/ExtensionsModal/utils.ts +++ b/src/components/TableModals/ExtensionsModal/utils.ts @@ -95,6 +95,7 @@ const extensionBodyTemplate = { return ({ trackedFields: [], // a list of string of column names + collectionId: "historySnapshots", // optionally change the sub-collection id of where the history snapshots are stored }) }`, algoliaIndex: `const extensionBody: AlgoliaIndexBody = async({row, db, change, ref}) => {