Skip to content

Commit

Permalink
fix: crash
Browse files Browse the repository at this point in the history
  • Loading branch information
JoakimSM committed Sep 21, 2023
1 parent 2a9fae0 commit 95ca207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AppDetails/Versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const VersionsTable = ({
{}
)

const { data: { groupVersions: dataStoreGroupVersions } = {}, loading } = useDataQuery(dataStoreQuery);
const { data: { groupVersions: dataStoreGroupVersions = {} } = {}, loading } = useDataQuery(dataStoreQuery);

if (loading) {
return null;
Expand All @@ -131,7 +131,7 @@ const VersionsTable = ({
{versions.map((version) => {
const versionActiveForUserGroup = Object
.entries(dataStoreGroupVersions)
.find(([, dataStoreVersion]) => dataStoreVersion === version.version)
?.find(([, dataStoreVersion]) => dataStoreVersion === version.version)
?.[0];

return (
Expand Down

0 comments on commit 95ca207

Please sign in to comment.