Skip to content

Commit

Permalink
fix: resolved cookie js bug on import page (openedx#34139)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhtishamShahid committed Jan 29, 2024
1 parent ffd4a54 commit d4536ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/static/js/features/import/views/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down

0 comments on commit d4536ed

Please sign in to comment.