We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b97ef56 commit 1510a60Copy full SHA for 1510a60
src/components/spreadsheet-view/spreadsheet/spreadsheet-content/spreadsheet-content.tsx
@@ -141,10 +141,13 @@ export const SpreadsheetContent = memo(
141
const nodeAlias = nodeAliases.find((value) => value.id === nodeId);
142
if (nodeAlias) {
143
Object.values(nodeEquipments).forEach((eq) => {
144
- prev[eq.id] = {
145
- ...prev[eq.id],
146
- [nodeAlias.alias]: eq,
147
- };
+ // To avoid empty lines in case of deleted equipments in current node but defined in another one
+ if (prev[eq.id] !== undefined) {
+ prev[eq.id] = {
+ ...prev[eq.id],
148
+ [nodeAlias.alias]: eq,
149
+ };
150
+ }
151
});
152
}
153
return prev;
0 commit comments