Skip to content

Commit

Permalink
fix: handle undefined function in labelPosition computed property
Browse files Browse the repository at this point in the history
  • Loading branch information
dontry committed Sep 15, 2024
1 parent 6419a37 commit 112df31
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const messageRef = ref();
const labelPosition: ComputedRef<[number, number]> = computed(() => {
// do not use .signature(). Multiple signatures are allowed, e.g. method().method1().method2()
const func = context?.value.messageBody().func();
if (!func) return [-1, -1];
return [func.start.start, func.stop.stop];
});
Expand Down

0 comments on commit 112df31

Please sign in to comment.