Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 7, 2024
1 parent 437849a commit 6653d0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Repl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const outputSlotName = computed(() => (props.layoutReverse ? 'left' : 'right'))
provide(injectKeyProps, toRefs(props))
provide(
injectKeyPreviewRef,
computed(() => outputRef.value?.previewRef?.container),
computed(() => outputRef.value?.previewRef?.container ?? null),
)
/**
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ export type OutputModes = 'preview' | EditorMode
export const injectKeyProps: InjectionKey<ToRefs<Required<Props>>> =
Symbol('props')
export const injectKeyPreviewRef: InjectionKey<
ComputedRef<HTMLDivElement | undefined>
ComputedRef<HTMLDivElement | null>
> = Symbol('preview-ref')

0 comments on commit 6653d0e

Please sign in to comment.