update all deps
This commit is contained in:
@@ -7,7 +7,7 @@ import CreateUpdateCvCategoryForm from "../_components/CreateUpdateForm";
|
||||
|
||||
export default function Page() {
|
||||
const {id} = useParams<{id: string}>();
|
||||
const {data} = trpc.category.select.useQuery({id: id})
|
||||
const {data} = trpc.category.getById.useQuery(id)
|
||||
if (data !== undefined && data.length > 0) {
|
||||
return (
|
||||
<CreateUpdateCvCategoryForm entity={data[0]}/>
|
||||
|
||||
@@ -6,7 +6,7 @@ import { trpc } from "~/app/_trpc/Client";
|
||||
import type { IterableElement } from 'type-fest'
|
||||
import { entitySchemas, makeOnSuccess } from "~/lib/utils";
|
||||
import type { RouterOutputs } from "~/server/routers/_app";
|
||||
import { CollapsibleForm, FormScaffold } from '~/app/_components/Form/Components';
|
||||
import { FormScaffold } from '~/app/_components/Form/Components';
|
||||
import { useState } from 'react';
|
||||
import { SelectFormField, TextInputFormField } from '~/app/_components/Form/Fields';
|
||||
import { usePathname, useRouter } from 'next/navigation';
|
||||
|
||||
Reference in New Issue
Block a user