Skip to content

Commit d053e39

Browse files
authored
Fix rendering of ProjectListItem (#18721)
Becauser of the public-api.ts conversion, it can render prebuilds disables if not set in settings.
1 parent cb3a7f0 commit d053e39

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

components/dashboard/src/projects/ProjectListItem.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ export const ProjectListItem: FunctionComponent<ProjectListItemProps> = ({ proje
2525
const [showRemoveModal, setShowRemoveModal] = useState(false);
2626
const { data: prebuild, isLoading } = useLatestProjectPrebuildQuery({ projectId: project.id });
2727

28-
const enablePrebuilds =
29-
!!project.settings?.enablePrebuilds ||
30-
// TODO(at): out of scope for now, but once we've migrated the settings of existings projects
31-
// we can remove the implicit enablement here
32-
!project.settings;
28+
const enablePrebuilds = Project.isPrebuildsEnabled(project);
3329

3430
return (
3531
<div key={`project-${project.id}`} className="h-52">

0 commit comments

Comments
 (0)