Fix db names on open modal
This commit is contained in:
parent
85ccb19d8f
commit
5b18b02946
@ -2,6 +2,7 @@ import { db } from "../../../data/db";
|
||||
import { Banner } from "@douyinfe/semi-ui";
|
||||
import { useLiveQuery } from "dexie-react-hooks";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { databases } from "../../../data/databases";
|
||||
|
||||
export default function Open({ selectedDiagramId, setSelectedDiagramId }) {
|
||||
const diagrams = useLiveQuery(() => db.diagrams.toArray());
|
||||
@ -64,7 +65,9 @@ export default function Open({ selectedDiagramId, setSelectedDiagramId }) {
|
||||
d.lastModified.toLocaleTimeString()}
|
||||
</td>
|
||||
<td className="py-1">{getDiagramSize(d)}</td>
|
||||
<td className="py-1">{d.database ?? 'generic'}</td>
|
||||
<td className="py-1">
|
||||
{databases[d.database].name ?? "Generic"}
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
})}
|
||||
|
Loading…
Reference in New Issue
Block a user