mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
remove unnecessary check
This commit is contained in:
parent
2ecce822f3
commit
96de4f028f
1 changed files with 2 additions and 3 deletions
|
|
@ -76,8 +76,7 @@ export const ApplyBlockHoverButtons = ({ codeStr, applyBoxId }: { codeStr: strin
|
|||
const shouldUpdate = applyingUri()?.fsPath !== uri.fsPath
|
||||
if (shouldUpdate) return
|
||||
rerender(c => c + 1)
|
||||
if (newStreamState !== streamState()) console.log('AAAAAAAAAAAAAAAAAAA')
|
||||
}, [applyBoxId, editCodeService, applyingUri, rerender, streamState])
|
||||
}, [applyBoxId, editCodeService, applyingUri])
|
||||
)
|
||||
|
||||
const onSubmit = useCallback(() => {
|
||||
|
|
@ -101,7 +100,7 @@ export const ApplyBlockHoverButtons = ({ codeStr, applyBoxId }: { codeStr: strin
|
|||
|
||||
editCodeService.interruptURIStreaming({ uri })
|
||||
metricsService.capture('Stop Apply', {})
|
||||
}, [streamState, applyingUri,editCodeService, metricsService])
|
||||
}, [streamState, applyingUri, editCodeService, metricsService])
|
||||
|
||||
|
||||
const isSingleLine = !codeStr.includes('\n')
|
||||
|
|
|
|||
Loading…
Reference in a new issue