File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
webview-ui/src/components/modes Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ const availableGroups = (Object.keys(TOOL_GROUPS) as ToolGroup[]).filter((group)
5555
5656type ModeSource = "global" | "project"
5757
58+ type ImportModeResult = { type : 'importModeResult' ; success : boolean ; slug ?: string ; error ?: string }
59+
5860type ModesViewProps = {
5961 onDone : ( ) => void
6062}
@@ -478,9 +480,7 @@ const ModesView = ({ onDone }: ModesViewProps) => {
478480 setShowImportDialog ( false )
479481
480482 if ( message . success ) {
481- // Type safe access to slug
482- type ImportModeResult = { type : 'importModeResult' ; success : boolean ; slug ?: string ; error ?: string }
483- const { slug } = message as ImportModeResult
483+ const { slug } = message as ImportModeResult
484484 if ( slug ) {
485485 // Try switching using the freshest mode list available
486486 const all = getAllModes ( customModesRef . current )
You can’t perform that action at this time.
0 commit comments