chore: snapshot before performance optimization
This commit is contained in:
18
keep-notes/fix_note_input.py
Normal file
18
keep-notes/fix_note_input.py
Normal file
@@ -0,0 +1,18 @@
|
||||
with open('components/note-input.tsx', 'r') as f:
|
||||
content = f.read()
|
||||
|
||||
old_call = """ const { suggestions, isAnalyzing } = useAutoTagging({
|
||||
content: type === 'text' ? fullContentForAI : '',
|
||||
enabled: type === 'text' && isExpanded
|
||||
})"""
|
||||
|
||||
new_call = """ const { suggestions, isAnalyzing } = useAutoTagging({
|
||||
content: type === 'text' ? fullContentForAI : '',
|
||||
enabled: type === 'text' && isExpanded,
|
||||
notebookId: currentNotebookId
|
||||
})"""
|
||||
|
||||
content = content.replace(old_call, new_call)
|
||||
|
||||
with open('components/note-input.tsx', 'w') as f:
|
||||
f.write(content)
|
||||
Reference in New Issue
Block a user