fix note_type icon

This commit is contained in:
LUIS NOVO 2024-11-01 19:53:56 -03:00
parent a24faaba44
commit a525fba1d2
3 changed files with 3 additions and 1 deletions

1
migrations/2.surrealql Normal file
View file

@ -0,0 +1 @@
DEFINE FIELD IF NOT EXISTS note_type ON TABLE note TYPE option<string>;

View file

@ -0,0 +1 @@
REMOVE FIELD IF EXISTS note_type ON TABLE note;

View file

@ -27,7 +27,7 @@ def note_panel(session_id=None, note_id=None):
if note_id:
note: Note = Note.get(note_id)
else:
note: Note = Note()
note: Note = Note(note_type="human")
t_preview, t_edit = st.tabs(["Preview", "Edit"])
with t_preview: