mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-16 17:05:17 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -193,8 +193,7 @@ export const ShowGitProviders = () => {
|
||||
await toggleShare({
|
||||
gitProviderId:
|
||||
gitProvider.gitProviderId,
|
||||
sharedWithOrganization:
|
||||
checked,
|
||||
sharedWithOrganization: checked,
|
||||
})
|
||||
.then(() => {
|
||||
toast.success(
|
||||
@@ -288,17 +287,13 @@ export const ShowGitProviders = () => {
|
||||
<>
|
||||
{isGithub && haveGithubRequirements && (
|
||||
<EditGithubProvider
|
||||
githubId={
|
||||
gitProvider.github?.githubId
|
||||
}
|
||||
githubId={gitProvider.github?.githubId}
|
||||
/>
|
||||
)}
|
||||
|
||||
{isGitlab && (
|
||||
<EditGitlabProvider
|
||||
gitlabId={
|
||||
gitProvider.gitlab?.gitlabId
|
||||
}
|
||||
gitlabId={gitProvider.gitlab?.gitlabId}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
@@ -891,9 +891,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
|
||||
render={() => (
|
||||
<FormItem className="md:col-span-2">
|
||||
<div className="mb-4">
|
||||
<FormLabel className="text-base">
|
||||
Git Providers
|
||||
</FormLabel>
|
||||
<FormLabel className="text-base">Git Providers</FormLabel>
|
||||
<FormDescription>
|
||||
Select the Git Providers that the user can access
|
||||
</FormDescription>
|
||||
@@ -925,8 +923,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
|
||||
} else {
|
||||
field.onChange(
|
||||
field.value?.filter(
|
||||
(v) =>
|
||||
v !== provider.gitProviderId,
|
||||
(v) => v !== provider.gitProviderId,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user