Fixed some types and wrong types
This commit is contained in:
1 parent
470cf122a3
commit
581c522b00
5 files changed
+10
-10
No files matched your search
@@ -2,7 +2,7 @@
|
||||
import type { Field } from "~/components/Admin/ModalForm.vue"
|
||||
import type { Row } from "~/ui/Table.vue"
|
||||
|
||||
const { data, refresh } = useApiFetch<Track[]>("/all/genres")
|
||||
const { data, refresh } = useApiFetch<Genre[]>("/all/genres")
|
||||
const toast = useToast()
|
||||
|
||||
const tableRows: Row[] = [
|
||||
@@ -22,7 +22,7 @@ const tableRows: Row[] = [
|
||||
const modalFields: Field[] = [{ key: "name", label: "Name" }]
|
||||
|
||||
const showModal = ref<boolean>(false)
|
||||
const item = ref<Track | undefined>(undefined)
|
||||
const item = ref<Genre | undefined>(undefined)
|
||||
|
||||
const save = async (value: any) => {
|
||||
if (value._id) {
|
||||
|
||||
Reference in new issue
Block a user