Skip to content

Commit

Permalink
no invalidation on new overview
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-crespo-fdc committed Oct 31, 2024
1 parent e763cca commit 9f8bd53
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions services/frontend-service/src/ui/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { PageRoutes } from './PageRoutes';
import '../../assets/app-v2.scss';
import * as React from 'react';
import {
AppDetailsResponse,
AppDetailsState,
EnableRolloutStatus,
FlushRolloutStatus,
Expand Down Expand Up @@ -103,15 +102,17 @@ export const App: React.FC = () => {
UpdateOverview.set({ loaded: true });
PanicOverview.set({ error: '' });

const newDetails: { [p: string]: AppDetailsResponse } = {};
result.lightweightApps?.forEach(
(elem) =>
(newDetails[elem.name] = {
const details = updateAppDetails.get();

result.lightweightApps?.forEach((elem) => {
if (!details[elem.name]) {
details[elem.name] = {
appDetailState: AppDetailsState.NOTREQUESTED,
details: undefined,
})
);
updateAppDetails.set(newDetails);
};
}
});
updateAppDetails.set(details);
},
(error) => {
PanicOverview.set({ error: JSON.stringify({ msg: 'error in streamoverview', error }) });
Expand Down

0 comments on commit 9f8bd53

Please sign in to comment.