Skip to content

Commit 521ff78

Browse files
committed
Fix preview interruption during app development
- Prevent 'Select an app to see the preview' message during app startup - Modified condition to only show message when no app is selected, no URL exists, and not loading - This prevents the message from appearing during app startup transitions
1 parent 9cab2b0 commit 521ff78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/preview_panel/PreviewIframe.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,9 @@ export const PreviewIframe = ({ loading }: { loading: boolean }) => {
403403
);
404404
}
405405

406-
// Display message if no app is selected
407-
if (selectedAppId === null) {
406+
// Display message if no app is selected and no app URL is available
407+
// This prevents showing the message during app startup transitions
408+
if (selectedAppId === null && !appUrl && !loading) {
408409
return (
409410
<div className="p-4 text-gray-500 dark:text-gray-400">
410411
Select an app to see the preview.

0 commit comments

Comments
 (0)