update the api-report and improve filter check

Signed-off-by: Ainhoa Larumbe <ainhoal@spotify.com>
This commit is contained in:
Ainhoa Larumbe
2021-09-16 11:13:43 +01:00
parent d9f2ff12bb
commit 81be2551bc
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -1889,7 +1889,7 @@ export interface TableColumn<T extends object = {}> extends Column<T> {
// @public (undocumented)
export type TableFilter = {
column: string;
type: 'select' | 'multiple-select' | 'checkbox-tree';
type: 'select' | 'multiple-select' | /** @deprecated */ 'checkbox-tree';
};
// Warning: (ae-missing-release-tag) "TableProps" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -367,11 +367,10 @@ export function Table<T extends object = {}>(props: TableProps<T>) {
// Check for deprecated checkbox-tree filter
useEffect(() => {
filters?.map(filter => {
if (filters?.some(filter => filter.type === 'checkbox-tree')) {
// eslint-disable-next-line no-console
if (filter.type === 'checkbox-tree')
console.warn('"checkbox-tree" filter type is deprecated');
});
console.warn('"checkbox-tree" filter type is deprecated');
}
}, [filters]);
const constructFilters = (