Skip to content

Commit 6f75844

Browse files
author
Łukasz Serwatka
authored
Merge pull request #81 from tischsoic/EZP-29362-Error-when-deleting-bookmark-UDW
EZP-29362: Error when deleting bookmark from UDW
2 parents 742216b + 6f1e0a6 commit 6f75844

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Resources/public/js/UniversalDiscovery.module.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Resources/public/js/UniversalDiscovery.module.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/universal-discovery/universal.discovery.module.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export default class UniversalDiscoveryModule extends Component {
325325
const { activeTab } = this.state;
326326

327327
if (activeTab === TAB_BOOKMARKS) {
328-
this.onItemSelect(null);
328+
this.closeCMP();
329329
}
330330

331331
this.dispatchBookmarkChangeEvent(itemToRemoveLocation.id, false);
@@ -483,6 +483,18 @@ export default class UniversalDiscoveryModule extends Component {
483483
this.setState((state) => ({ ...state, activeTab, contentMeta: null }));
484484
}
485485

486+
/**
487+
* Closes CMP (Content Meta Preview)
488+
*
489+
* @method closeCMP
490+
*/
491+
closeCMP() {
492+
this.setState((state) => ({
493+
...state,
494+
contentMeta: null,
495+
}));
496+
}
497+
486498
/**
487499
* Sets content types map state
488500
*

0 commit comments

Comments
 (0)