chore: snapshot before performance optimization
This commit is contained in:
@@ -217,7 +217,7 @@ function SortableNoteListItem({
|
||||
<Clock className="h-2.5 w-2.5" />
|
||||
{timeAgo}
|
||||
</span>
|
||||
{note.labels && note.labels.length > 0 && (
|
||||
{Array.isArray(note.labels) && note.labels.length > 0 && (
|
||||
<>
|
||||
<span className="text-muted-foreground/30">·</span>
|
||||
<div className="flex items-center gap-1">
|
||||
@@ -307,8 +307,8 @@ export function NotesTabsView({ notes, onEdit, currentNotebookId }: NotesTabsVie
|
||||
try {
|
||||
const newNote = await createNote({
|
||||
content: '',
|
||||
title: null,
|
||||
notebookId: currentNotebookId || null,
|
||||
title: undefined,
|
||||
notebookId: currentNotebookId || undefined,
|
||||
skipRevalidation: true
|
||||
})
|
||||
if (!newNote) return
|
||||
|
||||
Reference in New Issue
Block a user