Skip to content

Commit

Permalink
fix return type when creating dashboard config
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvogt committed Dec 20, 2024
1 parent 4260e3e commit 1ce0ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/utils/resourceUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ const createDashboardCR = (fastify: KubeFastifyInstance): Promise<DashboardConfi
DASHBOARD_CONFIG.plural,
blankDashboardCR,
)
.then((result) => [result.body])
.then((result) => result.body as DashboardConfig)
.catch((e) => {
fastify.log.error('Error creating Dashboard CR: ', e);
return null;
return blankDashboardCR;
});
};

Expand Down

0 comments on commit 1ce0ac2

Please sign in to comment.