Skip to content

Commit

Permalink
Merge pull request #3369 from dlabrecq/paused
Browse files Browse the repository at this point in the history
Test paused state of inactive sources
  • Loading branch information
dlabrecq authored Aug 31, 2023
2 parents e7d1fa6 + 35221ff commit 4bd3236
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface Provider {
has_data?: boolean;
infrastructure?: ProviderInfrastructure;
name?: string;
paused?: boolean;
previous_month_data?: boolean;
source_type?: string;
type?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/inactiveSources/inactiveSources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InactiveSourcesBase extends React.Component<InactiveSourcesProps, any> {

if (providers && providers.data) {
providers.data.map(data => {
if (data.active !== true) {
if (data.active !== true && data.paused !== true) {
sources.push(data.name);
}
});
Expand Down

0 comments on commit 4bd3236

Please sign in to comment.