Skip to content

Commit

Permalink
fix typing mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
sloansparger committed May 10, 2024
1 parent 4da802e commit 3b6e98b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const ItemIcon = ({
type,
"data-testid": dataTestId,
}: ItemIconProps) => {
const archived = isWrappedResult(item) && item.archived;
const archived = Boolean(isWrappedResult(item) && item.archived);

return (
<IconWrapper
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/metabase/search/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type LastEditedByProps = UserId[];
export type LastEditedAtFilterProps = string | null;
export type VerifiedFilterProps = true | null;
export type NativeQueryFilterProps = true | null;
export type IncludeTrashedItemsFilterProps = true | null;
export type SearchTrashedItemsFilterProps = true | undefined;

export type SearchFilterPropTypes = {
[SearchFilterKeys.Type]: TypeFilterProps;
Expand All @@ -37,7 +37,7 @@ export type SearchFilterPropTypes = {
[SearchFilterKeys.LastEditedBy]: LastEditedByProps;
[SearchFilterKeys.LastEditedAt]: LastEditedAtFilterProps;
[SearchFilterKeys.NativeQuery]: NativeQueryFilterProps;
[SearchFilterKeys.SearchTrashedItems]: NativeQueryFilterProps;
[SearchFilterKeys.SearchTrashedItems]: SearchTrashedItemsFilterProps;
};

export type FilterTypeKeys = keyof SearchFilterPropTypes;
Expand Down

0 comments on commit 3b6e98b

Please sign in to comment.