Migrate all DataBase to DBState
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { get } from 'svelte/store';
|
||||
import { FileAudioIcon, PlusIcon } from "lucide-svelte";
|
||||
import { DataBase, setDatabase, type character, type groupChat } from "src/ts/storage/database.svelte";
|
||||
import { type character, type groupChat } from "src/ts/storage/database.svelte";
|
||||
import { getFileSrc, saveAsset } from "src/ts/storage/globalApi";
|
||||
import { selectMultipleFile } from "src/ts/util";
|
||||
interface Props {
|
||||
@@ -48,8 +47,6 @@
|
||||
currentCharacter.additionalAssets.push([name, imgp, extension])
|
||||
currentCharacter = currentCharacter
|
||||
}
|
||||
const db = get(DataBase);
|
||||
setDatabase(db)
|
||||
}
|
||||
}}>
|
||||
<PlusIcon />
|
||||
|
||||
Reference in New Issue
Block a user