mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-21 11:28:47 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -209,12 +209,9 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const { data: servers } = api.server.allForPermissions.useQuery(
|
const { data: servers } = api.server.allForPermissions.useQuery(undefined, {
|
||||||
undefined,
|
enabled: isOpen && !!haveValidLicense,
|
||||||
{
|
});
|
||||||
enabled: isOpen && !!haveValidLicense,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
const { data, refetch } = api.user.one.useQuery(
|
const { data, refetch } = api.user.one.useQuery(
|
||||||
{
|
{
|
||||||
@@ -994,9 +991,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
|
|||||||
<FormItem className="flex flex-row items-center space-x-3 space-y-0 rounded-lg border p-3">
|
<FormItem className="flex flex-row items-center space-x-3 space-y-0 rounded-lg border p-3">
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={field.value?.includes(
|
checked={field.value?.includes(s.serverId)}
|
||||||
s.serverId,
|
|
||||||
)}
|
|
||||||
onCheckedChange={(checked) => {
|
onCheckedChange={(checked) => {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
field.onChange([
|
field.onChange([
|
||||||
|
|||||||
Reference in New Issue
Block a user