Regression that prevented initial configuration

This commit is contained in:
Eric van der Vlist 2023-03-13 13:19:43 +01:00
parent 95cfa8c8d7
commit 9588ca7749
1 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,9 @@ export const put = async (
_rev: current._rev,
type,
to: current.to,
origin: current.origin ?? dbUrlToUserId(state().remoteUrl),
origin:
current.origin ??
(state().remoteUrl ? dbUrlToUserId(state().remoteUrl) : undefined),
doc: update(current.doc),
};
await targetDb.put(putDoc);