File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,13 @@ export default async function ({ feature }) {
8080 )
8181 )
8282 ) || (
83- filterData . author && (
83+ filterData . title && (
8484 (
85- filterData . author . including &&
86- ! filterData . author . including . includes ( data . author . username . toLowerCase ( ) )
85+ filterData . title . including &&
86+ ! filterData . title . including . every ( ( text ) => data . title . toLowerCase ( ) . includes ( text . toLowerCase ( ) ) )
8787 ) || (
88- filterData . author . excluding &&
89- filterData . author . excluding . includes ( data . author . username . toLowerCase ( ) )
88+ filterData . title . excluding &&
89+ filterData . title . excluding . some ( ( text ) => data . title . toLowerCase ( ) . includes ( text . toLowerCase ( ) ) )
9090 )
9191 )
9292 )
@@ -131,6 +131,7 @@ export default async function ({ feature }) {
131131 apiCache [ href ] = data ;
132132 }
133133 if ( data . code === "NotFound" ) return element . classList . add ( "ste-filter-hide" ) ;
134+ console . log ( await checkStudio ( data ) )
134135 if ( type === "project" && await checkProject ( data ) || type === "studio" && await checkStudio ( data ) )
135136 element . classList . add ( "ste-filter-hide" ) ;
136137 else if ( element . classList . contains ( "ste-filter-hide" ) )
You can’t perform that action at this time.
0 commit comments