Skip to content

Commit

Permalink
Merge pull request #887 from gisaia/fix/actions
Browse files Browse the repository at this point in the history
Check that actions list exist
  • Loading branch information
MohamedHamouGisaia authored Nov 26, 2024
2 parents 39a2fc5 + 18dac3f commit 7542ab8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class ResultActionsComponent implements OnInit, OnChanges, OnDestroy {
private updateActions() {
if (this.activatedActionsPerItem) {
const actionIds = this.activatedActionsPerItem.get(this.item.identifier);
if (actionIds) {
if (!!actionIds && !!this.actions) {
this.actions.filter(a => ActionHandler.isReversible(a)).forEach(a => {
if (actionIds.has(a.id)) {
ActionHandler.activate(a);
Expand Down

0 comments on commit 7542ab8

Please sign in to comment.