Skip to content

Commit

Permalink
#451 deep copy grid element before using it further (e.g. passed as e…
Browse files Browse the repository at this point in the history
…vent to collectElementService afterwards, which causes problems
  • Loading branch information
klues committed Nov 27, 2024
1 parent 8779346 commit db838b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/service/actionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ actionService.doAction = async function (gridIdOrObject, gridElementId) {
return;
}
let gridData = gridIdOrObject.gridElements ? gridIdOrObject : (await dataService.getGrid(gridIdOrObject, false, true));
let gridElement = gridData.gridElements.find(e => e.id === gridElementId);
let gridElement = JSON.parse(JSON.stringify(gridData.gridElements.find(e => e.id === gridElementId)));

log.debug('do actions for: ' + i18nService.getTranslation(gridElement.label) + ', ' + gridElementId);
switch (gridElement.type) {
Expand Down

0 comments on commit db838b4

Please sign in to comment.