Skip to content

Commit 66c742e

Browse files
committed
fix(utils): remove selector
1 parent 8211642 commit 66c742e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/utils/src/selectors/tablesListSelectors.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ export const getUserTables: ParametricSelector<TableSchema[], void, TableSchema[
6464
tablesList => tablesList.filter(tableSelectors.isUserTable),
6565
);
6666

67-
export const getApplicationTables: ParametricSelector<TableSchema[], void, TableSchema[]> = createSelector(
67+
export const getApplicationTables: ParametricSelector<TableSchema[], string, TableSchema[]> = createSelector(
6868
getTableList,
69-
tablesList => tablesList.filter(({ application }) => !!application),
69+
(_, appName: string) => appName,
70+
(tablesList, appName) => tablesList.filter(({ application }) => application && application.name === appName),
7071
);
7172

7273
export const getViewTables: ParametricSelector<TableSchema[], void, TableSchema[]> = createSelector(

0 commit comments

Comments
 (0)