Skip to content

Commit 898ef23

Browse files
committed
chore: remove useless console guard
1 parent b554976 commit 898ef23

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Repl.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import SplitPane from './SplitPane.vue'
33
import Output from './output/Output.vue'
44
import { type Store, useStore } from './store'
5-
import { computed, provide, toRefs, useTemplateRef, watchEffect } from 'vue'
5+
import { computed, provide, toRefs, useTemplateRef } from 'vue'
66
import {
77
type ConsoleComponentType,
88
type EditorComponentType,
@@ -72,12 +72,6 @@ const props = withDefaults(defineProps<Props>(), {
7272
if (!props.editor) {
7373
throw new Error('The "editor" prop is now required.')
7474
}
75-
watchEffect(() => {
76-
if (!!props.showConsole && !props.console)
77-
throw new Error(
78-
'If you want to enable a console "console" prop is required.',
79-
)
80-
})
8175
const consoleWrapper = computed<ConsoleComponentType>(
8276
() => props.console ?? (() => ({})),
8377
)

0 commit comments

Comments
 (0)