fix note_type icon
This commit is contained in:
parent
a24faaba44
commit
a525fba1d2
3 changed files with 3 additions and 1 deletions
1
migrations/2.surrealql
Normal file
1
migrations/2.surrealql
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
DEFINE FIELD IF NOT EXISTS note_type ON TABLE note TYPE option<string>;
|
||||||
1
migrations/2_down.surrealql
Normal file
1
migrations/2_down.surrealql
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
REMOVE FIELD IF EXISTS note_type ON TABLE note;
|
||||||
|
|
@ -27,7 +27,7 @@ def note_panel(session_id=None, note_id=None):
|
||||||
if note_id:
|
if note_id:
|
||||||
note: Note = Note.get(note_id)
|
note: Note = Note.get(note_id)
|
||||||
else:
|
else:
|
||||||
note: Note = Note()
|
note: Note = Note(note_type="human")
|
||||||
|
|
||||||
t_preview, t_edit = st.tabs(["Preview", "Edit"])
|
t_preview, t_edit = st.tabs(["Preview", "Edit"])
|
||||||
with t_preview:
|
with t_preview:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue