Skip to content

Commit 9ffe1a3

Browse files
committed
Apply minor improvements
1 parent 5eb9301 commit 9ffe1a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

site/src/modules/workspaces/WorkspaceBuildLogs/WorkspaceBuildLogs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const styles = {
112112
borderRadius: "0 0 8px 8px",
113113
},
114114

115-
"&:first-child": {
115+
"&:first-of-type": {
116116
borderRadius: "8px 8px 0 0",
117117
},
118118
}),

site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export const TemplateVersionEditorPage: FC = () => {
138138
template_id: templateQuery.data.id,
139139
file_id: serverFile.hash,
140140
});
141+
141142
onBuildEnds(newVersion);
142143
}}
143144
onPublish={() => {
@@ -186,9 +187,8 @@ export const TemplateVersionEditorPage: FC = () => {
186187
}
187188
disableUpdate={
188189
templateVersionQuery.data.job.status !== "succeeded" ||
189-
!lastSuccessfulPublishedVersion ||
190190
templateVersionQuery.data.name ===
191-
lastSuccessfulPublishedVersion.name
191+
lastSuccessfulPublishedVersion?.name
192192
}
193193
resources={resourcesQuery.data}
194194
buildLogs={logs}

0 commit comments

Comments
 (0)