clean up error message

This commit is contained in:
Mads Rasmussen
2023-12-11 21:02:53 +01:00
parent 6362551fa3
commit 5579488eea

View File

@@ -104,12 +104,12 @@ export class UmbTreeItemContextBase<TreeItemType extends UmbTreeItemModelBase>
} }
public select() { public select() {
if (this.unique === undefined) throw new Error('Could not select, unique key is missing'); if (this.unique === undefined) throw new Error('Could not select. Unique is missing');
this.treeContext?.selection.select(this.unique); this.treeContext?.selection.select(this.unique);
} }
public deselect() { public deselect() {
if (this.unique === undefined) throw new Error('Could not deselect, unique key is missing'); if (this.unique === undefined) throw new Error('Could not deselect. Unique is missing');
this.treeContext?.selection.deselect(this.unique); this.treeContext?.selection.deselect(this.unique);
} }