fix(frontend/player): window node counter warn instead of error

This commit is contained in:
Alex Kaminskii 2022-08-17 18:07:20 +02:00
parent d9daf13463
commit 6c783a2f62

View file

@ -79,11 +79,11 @@ export default class WindowNodeCounter {
moveNode(id: number, parentId: number) {
if (!this.nodes[ id ]) {
console.error(`Wrong! Node with id ${ id } not found.`)
console.warn(`Node Counter: Node with id ${ id } not found.`)
return
}
if (!this.nodes[ parentId ]) {
console.error(`Wrong! Node with id ${ parentId } (parentId) not found.`)
console.warn(`Node Counter: Node with id ${ parentId } (parentId) not found.`)
return
}
this.nodes[ id ].moveNode(this.nodes[ parentId ])