diff --git a/invokeai/frontend/web/src/app/hooks/useStudioInitAction.ts b/invokeai/frontend/web/src/app/hooks/useStudioInitAction.ts index ff3bd60f55..b2384529f9 100644 --- a/invokeai/frontend/web/src/app/hooks/useStudioInitAction.ts +++ b/invokeai/frontend/web/src/app/hooks/useStudioInitAction.ts @@ -42,6 +42,7 @@ type StudioDestinationAction = _StudioInitAction< | 'canvas' | 'workflows' | 'upscaling' + | 'video' | 'viewAllWorkflows' | 'viewAllWorkflowsRecommended' | 'viewAllStylePresets'; @@ -177,6 +178,10 @@ export const useStudioInitAction = (action?: StudioInitAction) => { // Go to the upscaling tab navigationApi.switchToTab('upscaling'); break; + case 'video': + // Go to the video tab + await navigationApi.focusPanel('video', LAUNCHPAD_PANEL_ID); + break; case 'viewAllWorkflows': // Go to the workflows tab and open the workflow library modal navigationApi.switchToTab('workflows'); diff --git a/invokeai/frontend/web/src/features/ui/layouts/VideoLaunchpadPanel.tsx b/invokeai/frontend/web/src/features/ui/layouts/VideoLaunchpadPanel.tsx index c131655d2d..d7eb9c577c 100644 --- a/invokeai/frontend/web/src/features/ui/layouts/VideoLaunchpadPanel.tsx +++ b/invokeai/frontend/web/src/features/ui/layouts/VideoLaunchpadPanel.tsx @@ -17,12 +17,7 @@ export const VideoLaunchpadPanel = memo(() => { const videoUpsellComponent = useStore($videoUpsellComponent); if (!isVideoEnabled) { - return ( - - {videoUpsellComponent} - - - ); + return {videoUpsellComponent}; } return (