fix: initial val
This commit is contained in:
parent
9b8a7da1e6
commit
0d05238ee6
1 changed files with 1 additions and 3 deletions
|
|
@ -1225,9 +1225,7 @@ ToolRegistry.register<typeof WriteTool>({
|
||||||
container: "block",
|
container: "block",
|
||||||
render(props) {
|
render(props) {
|
||||||
const { theme, syntax } = useTheme()
|
const { theme, syntax } = useTheme()
|
||||||
const lines = createMemo(() => {
|
const lines = createMemo(() => props.input.content?.split("\n") ?? [], [] as string[])
|
||||||
return props.input.content?.split("\n") ?? []
|
|
||||||
})
|
|
||||||
const code = createMemo(() => {
|
const code = createMemo(() => {
|
||||||
if (!props.input.content) return ""
|
if (!props.input.content) return ""
|
||||||
const text = props.input.content
|
const text = props.input.content
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue