mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
prevent failed version request from crashing table view
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user