From 05de310ddd442f1e52ad88ea204179966305cae6 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Tue, 24 Aug 2021 14:49:45 +0200 Subject: [PATCH] Apply 2 suggestion(s) to 1 file(s) --- frontend/src/lib/storage-manager/storage-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/storage-manager/storage-manager.js b/frontend/src/lib/storage-manager/storage-manager.js index 2068cd02b..d9ef366ec 100644 --- a/frontend/src/lib/storage-manager/storage-manager.js +++ b/frontend/src/lib/storage-manager/storage-manager.js @@ -204,8 +204,8 @@ export class StorageManager { case LOCATION.WINDOW: return this._clearWindow(); case LOCATION.HISTORY: - if(options.history) - return this._clearHistory(options && options.history); + if(options && options.history) + return this._clearHistory(options.history); else return; default: