Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Jan 23, 2024
1 parent 0b60eb4 commit acde6a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/app-list-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
EnvironmentStatus,
environmentVulnerabilitySummarizer,
} from '../environments-summary/environment-status-utils';
import { filterFields } from '../../models/model-utils';
import { filterFields } from '../../utils/filter-fields';
import { routes } from '../../routes';
import {
ApplicationSummary,
Expand Down
10 changes: 1 addition & 9 deletions src/components/data-chart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,7 @@ export const AvailabilityCharts: FunctionComponent = () => {
return () => {
mounted = false;
};
}, []);

console.log({
error,
isAvailabilityLoading,
statusLoading,
statusCodes,
availabilityData,
});
}, [getStatusCodes]);

if (error) {
return <span>Failed to load chart</span>;
Expand Down
2 changes: 1 addition & 1 deletion src/components/environments-summary/environment-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import AsyncResource from '../async-resource/async-resource';
import { GitTagLinks } from '../git-tags/git-tag-links';
import { RelativeToNow } from '../time/relative-to-now';
import filterFields from '../../utils/filter-fields';
import { filterFields } from '../../utils/filter-fields';
import { routes } from '../../routes';
import {
DeploymentSummary,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/filter-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @param obj Object to filter
* @param keys Keys to keep
*/
export default function filterFields<T extends object, K extends keyof T>(
export function filterFields<T extends object, K extends keyof T>(
obj: T,
keys: Readonly<Array<K>>
): Pick<T, K> {
Expand Down

0 comments on commit acde6a0

Please sign in to comment.