Skip to content

Commit

Permalink
NVSHAS-9664: Policy Group: Delete custom script produces setRowData T…
Browse files Browse the repository at this point in the history
…ypeError
  • Loading branch information
xingzhang-suse authored and BinX-Suse committed Nov 16, 2024
1 parent 1aa98a0 commit 0a304f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class CustomCheckActionButtonComponent
updateGridData(
this.params.context.componentParent.customCheckScripts,
[data],
this.params.context.componentParent.gridOptions4CustomCheck.api!,
this.params.context.componentParent.gridApi!,
'name',
'delete'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ export class CustomCheckComponent implements OnInit {
this.notificationService.open(
this.translate.instant('group.script.msg.SCRIPT_OK')
);
if (!this.customCheckScripts) {
this.customCheckScripts = [];
}
updateGridData(
this.customCheckScripts,
payload.config[
Expand Down

0 comments on commit 0a304f7

Please sign in to comment.