mirror of https://github.com/buster-so/buster.git
fix: remove explicit any types to resolve lint errors
- Replace (row: any) and (item: any) with TypeScript inference - Let DashboardYml interface provide proper typing - Resolves noExplicitAny lint rule violations Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
This commit is contained in:
parent
4fa1a66fa2
commit
5386905e38
|
@ -371,7 +371,7 @@ const modifyDashboardFiles = wrapTraced(
|
|||
|
||||
for (const file of dashboardFilesToUpdate) {
|
||||
// Get current metric IDs from updated dashboard content
|
||||
const newMetricIds = (file.content as DashboardYml).rows.flatMap((row: any) => row.items).map((item: any) => item.id);
|
||||
const newMetricIds = (file.content as DashboardYml).rows.flatMap(row => row.items).map(item => item.id);
|
||||
|
||||
const existingAssociations = await tx
|
||||
.select({ metricFileId: metricFilesToDashboardFiles.metricFileId })
|
||||
|
|
Loading…
Reference in New Issue