Skip to content

Commit 7aca315

Browse files
committed
fix: data can be null
1 parent d087021 commit 7aca315

File tree

1 file changed

+1
-1
lines changed
  • packages/app-frontend/src/features/components/composable

1 file changed

+1
-1
lines changed

packages/app-frontend/src/features/components/composable/components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export function useSelectedComponent () {
194194
})), 'type')
195195
: ({}))
196196

197-
const fileIsPath = computed(() => data.value.file && /[/\\]/.test(data.value.file))
197+
const fileIsPath = computed(() => data.value?.file && /[/\\]/.test(data.value.file))
198198

199199
function inspectDOM () {
200200
if (!data.value) return

0 commit comments

Comments
 (0)