diff --git a/src/app/_helpers/sync.ts b/src/app/_helpers/sync.ts index 9a0840b..3942140 100644 --- a/src/app/_helpers/sync.ts +++ b/src/app/_helpers/sync.ts @@ -16,13 +16,13 @@ export function updateSyncable( } try { target[path[0]] = c.v; - } catch (e) { + } catch (error) { if ( - !e.message.includes( + !error.message.includes( 'Cannot assign an object that already belongs to an Automerge document.' ) ) { - throw new Error(e); + throw new Error(error); } } });