Allow-list error type

This commit is contained in:
Andras Schmelczer 2025-12-10 23:14:50 +00:00
commit 387e7afd58
3 changed files with 35 additions and 20 deletions

View file

@ -90,10 +90,11 @@ export class MockAgent extends MockClient {
this.createFileAction.bind(this)
];
if (this.client.getSettings().isSyncEnabled) {
if (this.doNotTouchWhileOffline.length === 0) {
options.push(this.disableSyncAction.bind(this));
}
if (
this.client.getSettings().isSyncEnabled &&
this.doNotTouchWhileOffline.length === 0
) {
options.push(this.disableSyncAction.bind(this));
} else {
options.push(this.enableSyncAction.bind(this));
}