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 671ade6 commit bf35f3dCopy full SHA for bf35f3d
webview-ui/src/components/modes/ModesView.tsx
@@ -337,6 +337,13 @@ const ModesView = ({ onDone }: ModesViewProps) => {
337
}
338
}, [isCreateModeDialogOpen, resetFormState])
339
340
+ // Ensure import dialog defaults to "project" each open
341
+ useEffect(() => {
342
+ if (showImportDialog) {
343
+ setImportLevel("project")
344
+ }
345
+ }, [showImportDialog])
346
+
347
// Helper function to generate a unique slug from a name
348
const generateSlug = useCallback((name: string, attempt = 0): string => {
349
const baseSlug = name
0 commit comments