Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nichochar committed Oct 22, 2024
1 parent 9bf0c40 commit 269d6f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/api/ai/plan-parser.mts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,5 @@ export function getPackagesToInstall(plan: Plan): string[] {
(action): action is NpmInstallCommand =>
action.type === 'command' && action.command === 'npm install',
)
.map((action) => action.packages)
.flat();
.flatMap((action) => action.packages);
}
4 changes: 2 additions & 2 deletions packages/web/src/components/apps/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default function EditorHeader(props: PropsType) {
size="icon"
onClick={() => window.open(url as string, '_blank')}
className="active:translate-y-0"
disabled={previewStatus === 'booting' || previewStatus === 'connecting'}
disabled={previewStatus !== 'running'}
>
<ExternalLinkIcon size={18} />
</Button>
Expand All @@ -202,7 +202,7 @@ export default function EditorHeader(props: PropsType) {
props.onChangeTab('code');
}}
className="active:translate-y-0"
disabled={previewStatus === 'booting' || previewStatus === 'connecting'}
disabled={previewStatus !== 'running'}
>
<StopCircleIcon size={18} />
</Button>
Expand Down

0 comments on commit 269d6f3

Please sign in to comment.