File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,11 @@ export function DownloadedScriptsTab({ onInstallScript }: DownloadedScriptsTabPr
275275 scripts = scripts . filter ( script => {
276276 if ( ! script ) return false ;
277277 const scriptType = ( script . type ?? '' ) . toLowerCase ( ) ;
278- return filters . selectedTypes . some ( type => type . toLowerCase ( ) === scriptType ) ;
278+
279+ // Map non-standard types to standard categories
280+ const mappedType = scriptType === 'turnkey' ? 'ct' : scriptType ;
281+
282+ return filters . selectedTypes . some ( type => type . toLowerCase ( ) === mappedType ) ;
279283 } ) ;
280284 }
281285
Original file line number Diff line number Diff line change @@ -303,7 +303,11 @@ export function ScriptsGrid({ onInstallScript }: ScriptsGridProps) {
303303 scripts = scripts . filter ( script => {
304304 if ( ! script ) return false ;
305305 const scriptType = ( script . type ?? '' ) . toLowerCase ( ) ;
306- return filters . selectedTypes . some ( type => type . toLowerCase ( ) === scriptType ) ;
306+
307+ // Map non-standard types to standard categories
308+ const mappedType = scriptType === 'turnkey' ? 'ct' : scriptType ;
309+
310+ return filters . selectedTypes . some ( type => type . toLowerCase ( ) === mappedType ) ;
307311 } ) ;
308312 }
309313
You can’t perform that action at this time.
0 commit comments