Skip to content

Commit

Permalink
Bug 2023607: Fix blank page error for Installed Operators
Browse files Browse the repository at this point in the history
Installed Operators was crashing when a user with no projects tried to view it. Undefined data was being passed in. I set a default value.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2023607
  • Loading branch information
rebeccaalpert committed Nov 17, 2021
1 parent 54f679a commit 7368510
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -561,9 +561,9 @@ const CSVListNoDataEmptyMsg = () => {
};

export const ClusterServiceVersionList: React.FC<ClusterServiceVersionListProps> = ({
subscriptions,
catalogSources,
data,
subscriptions = [],
catalogSources = [],
data = [],
...rest
}) => {
const { t } = useTranslation();
Expand Down Expand Up @@ -699,7 +699,7 @@ export const ClusterServiceVersionList: React.FC<ClusterServiceVersionListProps>
<Table
data={filterOperators(data, allNamespaceActive)}
{...rest}
aria-label="Installed Operators"
aria-label={t('olm~Installed Operators')}
Header={allNamespaceActive ? AllProjectsTableHeader : SingleProjectTableHeader}
Row={InstalledOperatorTableRow}
EmptyMsg={CSVListEmptyMsg}
Expand Down
4 changes: 2 additions & 2 deletions frontend/public/locales/en/public.json
Expand Up @@ -1843,10 +1843,10 @@
"Filter by unit": "Filter by unit",
"Unit": "Unit",
"Set your individual preferences for the console experience. Any changes will be autosaved.": "Set your individual preferences for the console experience. Any changes will be autosaved.",
"Loading {{title}} status": "Loading {{title}} status",
"Disable": "Disable",
"default": "default",
"OK": "OK",
"Disabled": "Disabled",
"Enabled": "Enabled"
"Enabled": "Enabled",
"Loading {{title}} status": "Loading {{title}} status"
}

0 comments on commit 7368510

Please sign in to comment.