From 2db913db20c9a75b41d32680f7481abfde440bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Tron=C3=AD=C4=8Dek?= Date: Fri, 27 Oct 2023 16:23:35 +0000 Subject: [PATCH] Bollocks --- .../src/configurations/detail/ConfigurationWorkspaces.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/components/dashboard/src/configurations/detail/ConfigurationWorkspaces.tsx b/components/dashboard/src/configurations/detail/ConfigurationWorkspaces.tsx index 1b9a7978133fe2..9670ac52458bd4 100644 --- a/components/dashboard/src/configurations/detail/ConfigurationWorkspaces.tsx +++ b/components/dashboard/src/configurations/detail/ConfigurationWorkspaces.tsx @@ -21,8 +21,6 @@ export default function ConfigurationWorkspacesSettings({ repository }: Reposito const updateRepositorySettings = useCallback( async (settings: ProjectSettings) => { - if (!repository) return; - const newSettings = { ...repository.settings, ...settings }; await updateRepository.mutateAsync( { id: repository.id, settings: newSettings }, @@ -41,9 +39,6 @@ export default function ConfigurationWorkspacesSettings({ repository }: Reposito const setWorkspaceClass = useCallback( async (value: string) => { - if (!repository) { - return value; - } const before = repository.settings?.workspaceClasses?.regular; updateRepositorySettings({ workspaceClasses: { ...repository.settings?.workspaceClasses, regular: value },