mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
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",
|
||||
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…
Add table
Add a link
Reference in a new issue