Skip to content

Commit

Permalink
fix(Navigation/Favourites): allow to add items when the value is unde…
Browse files Browse the repository at this point in the history
…fined
  • Loading branch information
ma-efremoff committed Aug 27, 2024
1 parent 4916432 commit 69c9202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/ui/store/actions/favourites.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function toggleFavourite(value, parentNS, settingName = SettingName.LOCAL
return (dispatch, getState) => {
return dispatch(reloadSetting(settingName, parentNS)).then(() => {
const state = getState();
const current = [...makeGetSetting(state)(settingName, parentNS)] || [];
const current = [...(makeGetSetting(state)(settingName, parentNS) || [])];
const currentPathItem = {path: value};

const entry = _.find(current, currentPathItem);
Expand Down

0 comments on commit 69c9202

Please # to comment.