fix(core): add nullish operator to check visibility (#1942)

* fix(core): add nullish operator to check visibility

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2025-09-02 17:12:17 +02:00
parent f8c11e432a
commit 67832e528d
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---
Add nullish operator to checkVisibility call

View File

@@ -16,7 +16,7 @@ export function useResizeHandler(viewportEl: Ref<HTMLDivElement | null>): void {
onMounted(() => {
const updateDimensions = () => {
if (!viewportEl.value || !(viewportEl.value.checkVisibility() ?? true)) {
if (!viewportEl.value || !(viewportEl.value.checkVisibility?.() ?? true)) {
return
}