Skip to content

Commit

Permalink
default to current
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Jul 3, 2024
1 parent 5f65c0b commit da24ffc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export const ProjectDropdown: FC<Props> = ({ project, organizationId, storage })
}
}, [updateProjectFetcher.data, updateProjectFetcher.state]);

const defaultStorageSelection = storage === 'local_only' ? 'local' : 'remote';
return (
<Fragment>
{isProjectInconsistent &&
Expand Down Expand Up @@ -228,7 +227,7 @@ export const ProjectDropdown: FC<Props> = ({ project, organizationId, storage })
className="py-1 placeholder:italic w-full pl-2 pr-7 rounded-sm border border-solid border-[--hl-sm] bg-[--color-bg] text-[--color-font] focus:outline-none focus:ring-1 focus:ring-[--hl-md] transition-colors"
/>
</TextField>
<RadioGroup name="type" defaultValue={defaultStorageSelection} className="flex flex-col gap-2">
<RadioGroup name="type" defaultValue={project.remoteId ? 'remote' : 'local'} className="flex flex-col gap-2">
<Label className="text-sm text-[--hl]">
Project type
</Label>
Expand Down

0 comments on commit da24ffc

Please sign in to comment.