File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ declare module 'astro:content' {
44 Content : import ( 'astro' ) . MarkdownInstance < { } > [ 'Content' ] ;
55 headings : import ( 'astro' ) . MarkdownHeading [ ] ;
66 remarkPluginFrontmatter: Record < string , any > ;
7+ components: import ( 'astro' ) . MDXInstance < { } > [ 'components' ] ;
78 } > ;
89 }
910}
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ export default function DynamicSpreadsheet() {
5454 ? prevFilters [ filter ] . filter ( ( item ) => item !== value )
5555 : [ ...( prevFilters [ filter ] || [ ] ) , value ] ;
5656
57- console . log ( updatedFilterValues ) ;
5857 return {
5958 ...prevFilters ,
6059 [ filter ] : updatedFilterValues ,
@@ -73,9 +72,8 @@ export default function DynamicSpreadsheet() {
7372 } ;
7473
7574 const filteredRows = rows . filter ( ( row : Row ) => {
76- console . log ( 'Entri qua ' , row ) ;
77- const metodiMatch = filters . metodo . length === 0 || filters . metodo . some ( ( metodo ) => row . metodi . includes ( metodo ) ) ;
78- const targetMatch = filters . target . length === 0 || filters . target . some ( ( target ) => row . targets . includes ( target ) ) ;
75+ const metodiMatch = filters . metodo . length === 0 || filters . metodo . every ( ( metodo ) => row . metodi . includes ( metodo ) ) ;
76+ const targetMatch = filters . target . length === 0 || filters . target . every ( ( target ) => row . targets . includes ( target ) ) ;
7977 return metodiMatch && targetMatch ;
8078 } ) ;
8179
You can’t perform that action at this time.
0 commit comments