fix: initial val

This commit is contained in:
Aiden Cline
2025-11-16 01:14:49 -06:00
parent 9b8a7da1e6
commit 0d05238ee6

View File

@@ -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