diff --git a/src/app/features/config/form-cfgs/automatic-backups-form.const.ts b/src/app/features/config/form-cfgs/automatic-backups-form.const.ts index b041c91eff4..07b0bd86dcf 100644 --- a/src/app/features/config/form-cfgs/automatic-backups-form.const.ts +++ b/src/app/features/config/form-cfgs/automatic-backups-form.const.ts @@ -7,7 +7,7 @@ import { IS_ELECTRON } from '../../../app.constants'; const backupPath = // eslint-disable-next-line @typescript-eslint/no-non-null-assertion IS_ELECTRON && - `${getElectronRemoteModule()!.app.getPath('userData')}${ + `${getElectronRemoteModule()?.app.getPath('userData')}${ navigator?.userAgent?.search('Windows') ? '\\' : '/' }backups`;