Skip to content

Commit

Permalink
Merge pull request #387 from zskarte/dev
Browse files Browse the repository at this point in the history
hotfix: you can delete stuff now
  • Loading branch information
gobeli authored Jan 19, 2024
2 parents 6a9b50c + 5c811da commit 9683553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/state/state.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ export class ZsMapStateService {

public removeDrawElement(id: string) {
const index = this._map.value.drawElements?.findIndex((o) => o.id === id) ?? -1;
if (index > -1) {
if (index === -1) {
throw new Error('Id not correct');
}
this.updateMapState((draft) => {
Expand Down

0 comments on commit 9683553

Please sign in to comment.