Skip to content

Commit b174401

Browse files
fix: Remove multiselect until errors fixed (#2530)
* Removed for now till fixed * fmt --------- Co-authored-by: Andreas Thomas <dev@chronark.com>
1 parent 13f1153 commit b174401

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

apps/dashboard/app/(app)/authorization/roles/create-new-role.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client";
22

33
import { Loading } from "@/components/dashboard/loading";
4-
import { MultiSelect } from "@/components/multi-select";
54
import { Badge } from "@/components/ui/badge";
65
import { Button } from "@/components/ui/button";
76

@@ -105,7 +104,6 @@ export const CreateNewRole: React.FC<Props> = ({ trigger, permissions }) => {
105104
<DialogTitle>Create a new role</DialogTitle>
106105
<DialogDescription>Roles group permissions together.</DialogDescription>
107106
</DialogHeader>
108-
109107
<Form {...form}>
110108
<form onSubmit={form.handleSubmit(onSubmit)} className="flex flex-col gap-8">
111109
<FormField
@@ -147,7 +145,8 @@ export const CreateNewRole: React.FC<Props> = ({ trigger, permissions }) => {
147145
</FormItem>
148146
)}
149147
/>
150-
{permissions && permissions.length > 0 ? (
148+
{/* Broken Have to link permissions on next page after creation */}
149+
{/*{permissions && permissions.length > 0 ? (
151150
<FormField
152151
control={form.control}
153152
name="permissionOptions"
@@ -176,7 +175,7 @@ export const CreateNewRole: React.FC<Props> = ({ trigger, permissions }) => {
176175
</FormItem>
177176
)}
178177
/>
179-
) : null}
178+
) : null}*/}
180179
<DialogFooter>
181180
<Button type="submit">
182181
{createRole.isLoading ? <Loading className="w-4 h-4" /> : "Create"}

0 commit comments

Comments
 (0)