Skip to content

Commit

Permalink
Tidy up last lot of types
Browse files Browse the repository at this point in the history
  • Loading branch information
danyill committed Feb 27, 2022
1 parent 56d19d7 commit 0ecd4c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/editors/Cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ export default class Cleanup extends LitElement {
const actions: Delete[] = [];
if (gridDataset) {
gridDataset.selectedItems.forEach(item => {
const itemToDelete: Element|null|undefined = this.getDatasetFromIED(item.name, item.dataset);
const itemToDelete: Element = this.getDatasetFromIED(item.name, item.dataset)!;
console.log(itemToDelete);
actions.push({
old: {
parent: itemToDelete?.parentElement,
itemToDelete,
reference: itemToDelete?.nextSibling,
parent: <Element>(itemToDelete.parentElement!),
element: itemToDelete,
reference: <Node|null>itemToDelete!.nextSibling,
},
});
});
Expand Down

0 comments on commit 0ecd4c2

Please sign in to comment.