We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e685ab commit 28fc626Copy full SHA for 28fc626
site/src/components/TemplateVersionWarnings/TemplateVersionWarnings.tsx
@@ -8,10 +8,8 @@ export interface TemplateVersionWarningsProps {
8
9
export const TemplateVersionWarnings: FC<
10
React.PropsWithChildren<TemplateVersionWarningsProps>
11
-> = ({ warnings }) => {
12
- if (!warnings) {
13
- return <></>;
14
- }
+> = (props) => {
+ const { warnings = [] } = props;
15
16
if (!warnings.includes("UNSUPPORTED_WORKSPACES")) {
17
return null;
0 commit comments