Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
4010 // Update query to retrieve non-deprecated resources by default
Browse files Browse the repository at this point in the history
Signed-off-by: Dinika Saxena <dinikasaxenas@gmail.com>
  • Loading branch information
Dinika authored and bilalesi committed Aug 21, 2023
1 parent 9606ce7 commit 117c13e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/containers/ResourceListBoardContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const DEFAULT_LIST: ResourceBoardList = {
id: 'default',
query: {
size: 6,
deprecated: undefined,
deprecated: false, // Do not fetch deprecated resources by default.
sort: '-_createdAt',
},
};
Expand Down
1 change: 0 additions & 1 deletion src/shared/containers/ResourceListContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ const ResourceListContainer: React.FunctionComponent<{
query: {
...list.query,
type: !!value ? value : undefined,
deprecated: undefined,
from: 0,
},
});
Expand Down

0 comments on commit 117c13e

Please sign in to comment.