fix(frontend/player): window node counter warn instead of error
This commit is contained in:
parent
d9daf13463
commit
6c783a2f62
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue