update: use tryOnMounted

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-04 16:40:07 +01:00
parent 527a70c040
commit 601b65a75f
2 changed files with 2 additions and 2 deletions
@@ -37,7 +37,7 @@ const onWheel = (event: WheelEvent) => store.hooks.paneScroll.trigger(event)
const userSelection = ref(false)
onMounted(() => {
tryOnMounted(() => {
useKeyPress(props.deleteKeyCode, (keyPressed) => {
if (keyPressed && props.selectedElements) {
const selectedNodes = props.selectedElements.filter(isGraphNode)