Skip to content

Commit

Permalink
#15 Fix memorizing of a chosen tab in the metabox
Browse files Browse the repository at this point in the history
  • Loading branch information
versusbassz committed Aug 8, 2021
1 parent 799806f commit e0e42de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/hooks/useCurrentTabStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const useCurrentTabStorage = (entityType, currentTab, setCurrentTab) => {
useEffect(() => {
const storedValues = getStorageValue();

if (! storedValues[entityType]) {
if (! storedValues || ! storedValues[entityType]) {
return;
}

Expand Down

0 comments on commit e0e42de

Please sign in to comment.