File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export function TagManage() {
3535
3636 async function quickAddTag ( ) {
3737 const res = await insertTag ( { name } )
38- await setCurrentTagId ( res . lastInsertId )
38+ await setCurrentTagId ( res . lastInsertId as number )
3939 await fetchTags ( )
4040 await fetchCurrentNotes ( )
4141 await fetchCurrentNote ( )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 FormMessage ,
1313} from "@/components/ui/form"
1414import { Store } from "@tauri-apps/plugin-store"
15- import { useEffect , useState } from "react"
15+ import { Suspense , useEffect , useState } from "react"
1616import { toast } from "@/hooks/use-toast"
1717import { debounce , upperFirst } from 'lodash-es'
1818import { SettingTab } from "./setting-tab"
@@ -80,7 +80,9 @@ export default function Page() {
8080 } , [ ] )
8181
8282 return < div className = "flex" >
83- < SettingTab />
83+ < Suspense >
84+ < SettingTab />
85+ </ Suspense >
8486 < Form { ...form } >
8587 < form onChange = { debounceSubmit } id = "setting-form" className = "space-y-4 p-4 flex-1 h-screen overflow-y-scroll" >
8688 {
You can’t perform that action at this time.
0 commit comments