Skip to content

Commit

Permalink
fix: Platform and Tags should be equals not colons
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed May 10, 2024
1 parent 9db9d8a commit c6dbf2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/components/RightBrowseSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1235,13 +1235,13 @@ export class RightBrowseSidebar extends React.Component<RightBrowseSidebarProps,

onTagSelect = (tag: Tag): void => {
const alias = tag.name;
const search = `tag:${wrapSearchTerm(alias)}`;
const search = `tag=${wrapSearchTerm(alias)}`;
this.props.onSearch(search);
};

onPlatformSelect = (platform: Platform): void => {
const alias = platform.name;
const search = `platform:${wrapSearchTerm(alias)}`;
const search = `platform=${wrapSearchTerm(alias)}`;
this.props.onSearch(search);
};

Expand Down Expand Up @@ -1427,7 +1427,7 @@ export class RightBrowseSidebar extends React.Component<RightBrowseSidebarProps,
const value = currentGame[field];
const search = (value)
? `${field}=${wrapSearchTerm(value)}`
: `missing:${field}`;
: `${field}=""`;
this.props.onSearch(search);
}
};
Expand Down

0 comments on commit c6dbf2d

Please sign in to comment.