mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
fixed syncing of erased notes, closes #2316
This commit is contained in:
@@ -160,6 +160,11 @@ if (utils.isElectron()) {
|
||||
arg.body = JSON.parse(arg.body);
|
||||
}
|
||||
|
||||
if (!(arg.requestId in reqResolves)) {
|
||||
// this can happen when reload happens between firing up the request and receiving the response
|
||||
throw new Error(`Unknown requestId="${arg.requestId}"`);
|
||||
}
|
||||
|
||||
reqResolves[arg.requestId]({
|
||||
body: arg.body,
|
||||
headers: arg.headers
|
||||
|
||||
Reference in New Issue
Block a user