From f1b687def014bd7adbfee4d602750b9dc6006450 Mon Sep 17 00:00:00 2001 From: Aditya Hegde Date: Tue, 3 Oct 2023 22:19:11 +0530 Subject: [PATCH] Fixing linters --- .../src/features/projects/ProjectDeploymentStatusChip.svelte | 4 +++- .../routes/[organization]/[project]/[dashboard]/+page.svelte | 4 +++- web-common/src/features/entity-management/resources-store.ts | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web-admin/src/features/projects/ProjectDeploymentStatusChip.svelte b/web-admin/src/features/projects/ProjectDeploymentStatusChip.svelte index 3ed903becf8..f0cbbe29031 100644 --- a/web-admin/src/features/projects/ProjectDeploymentStatusChip.svelte +++ b/web-admin/src/features/projects/ProjectDeploymentStatusChip.svelte @@ -65,7 +65,9 @@ async function getDashboardsAndInvalidate() { const dashboardListItems = await getDashboardsForProject($proj.data); - const dashboardNames = dashboardListItems.map((listing) => listing.name); + const dashboardNames = dashboardListItems.map( + (listing) => listing.meta.name.name + ); return invalidateDashboardsQueries(queryClient, dashboardNames); } diff --git a/web-admin/src/routes/[organization]/[project]/[dashboard]/+page.svelte b/web-admin/src/routes/[organization]/[project]/[dashboard]/+page.svelte index 69e6f27f1da..52e7fb225ca 100644 --- a/web-admin/src/routes/[organization]/[project]/[dashboard]/+page.svelte +++ b/web-admin/src/routes/[organization]/[project]/[dashboard]/+page.svelte @@ -67,7 +67,9 @@ async function getDashboardsAndInvalidate() { const dashboardListings = await getDashboardsForProject($project.data); - const dashboardNames = dashboardListings.map((listing) => listing.name); + const dashboardNames = dashboardListings.map( + (listing) => listing.meta.name.name + ); return invalidateDashboardsQueries(queryClient, dashboardNames); } diff --git a/web-common/src/features/entity-management/resources-store.ts b/web-common/src/features/entity-management/resources-store.ts index 9c0bd63ae74..682d4aff925 100644 --- a/web-common/src/features/entity-management/resources-store.ts +++ b/web-common/src/features/entity-management/resources-store.ts @@ -104,10 +104,6 @@ export function getAllErrorsForFile( // TODO: what should the error be for failed get resource API return []; } - console.log( - filePath, - projectParser.data?.projectParser?.state?.parseErrors - ); return [ ...(projectParser.data?.projectParser?.state?.parseErrors ?? []).filter( (e) => e.filePath === filePath