Skip to content

Commit

Permalink
Bollocks
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Oct 27, 2023
1 parent fad49dc commit 2db913d
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -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 },
Expand Down

0 comments on commit 2db913d

Please sign in to comment.