fix: initial val
parent
9b8a7da1e6
commit
0d05238ee6
|
|
@ -1225,9 +1225,7 @@ ToolRegistry.register<typeof WriteTool>({
|
|||
container: "block",
|
||||
render(props) {
|
||||
const { theme, syntax } = useTheme()
|
||||
const lines = createMemo(() => {
|
||||
return props.input.content?.split("\n") ?? []
|
||||
})
|
||||
const lines = createMemo(() => props.input.content?.split("\n") ?? [], [] as string[])
|
||||
const code = createMemo(() => {
|
||||
if (!props.input.content) return ""
|
||||
const text = props.input.content
|
||||
|
|
|
|||
Loading…
Reference in New Issue