From d4536ed79d771aa502da45d125f7ede0fe5d9b90 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Tue, 30 Jan 2024 01:06:19 +0500 Subject: [PATCH] fix: resolved cookie js bug on import page (#34139) --- cms/static/js/features/import/views/import.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/static/js/features/import/views/import.js b/cms/static/js/features/import/views/import.js index e34965a0927d..8d6d0a6ace30 100644 --- a/cms/static/js/features/import/views/import.js +++ b/cms/static/js/features/import/views/import.js @@ -332,7 +332,7 @@ define( * @return {JSON} the data of the previous import */ storedImport: function() { - return JSON.parse($.cookie(COOKIE_NAME)); + return JSON.parse($.cookie(COOKIE_NAME) || null); } };