diff --git a/README.md b/README.md index c29358b..6ed1d8d 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,8 @@ [ TODO LIST ] -- [ ] Make a web version ( if possible ) - [ ] Add Linux and MacOS Builds -- [ ] Handle Sqlite with password +- [ ] Handle SQLite with password - [x] Render performance for big sqlite files - [x] Execute SQL command tab - [x] Schema Generator diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index d7b2a26..8e19bea 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -9,8 +9,6 @@ default-run = "app" edition = "2021" rust-version = "1.60" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [build-dependencies] tauri-build = { version = "1.4.0", features = [] } diff --git a/src/app/browse.tsx b/src/app/browse.tsx index 1a8673c..e8800ba 100644 --- a/src/app/browse.tsx +++ b/src/app/browse.tsx @@ -22,9 +22,9 @@ import { } from "@/components/ui/table"; interface BrowseProps { - setSelectedTable: (value: SetStateAction) => void; + setSelectedTable: (value: SetStateAction) => void; tables: string[]; - selectedTable: string | null; + selectedTable: string; records: Columns; } @@ -38,7 +38,6 @@ export default function Browse(props: BrowseProps) { const endIndex = startIndex + ROWS_PER_PAGE; const totalPages = Math.ceil( - // @ts-ignore records[selectedTable]?.[Object.keys(records[selectedTable])[0]]?.length / ROWS_PER_PAGE ); @@ -53,7 +52,10 @@ export default function Browse(props: BrowseProps) { {selectedTable && (