fix(typescript): remove remaining type assertions in ShareExport.tsx

- Remove type assertions from openSaveAsDialog calls
- Function now accepts unknown type, so no assertions needed
- TypeScript will accept any value since function signature is unknown
This commit is contained in:
Roberto Jimenez Sanchez
2025-12-02 22:19:47 +01:00
parent d337960ea7
commit f55beac48a
@@ -38,10 +38,10 @@ export const ShareExport = memo(({ dashboard, panel, onDismiss }: Props) => {
console.error('Failed to export dashboard:', dashboardJson.error);
return;
}
openSaveAsDialog(dashboardJson as Record<string, unknown> & { title?: string });
openSaveAsDialog(dashboardJson);
});
} else {
openSaveAsDialog(dashboard.getSaveModelClone() as Record<string, unknown> & { title?: string });
openSaveAsDialog(dashboard.getSaveModelClone());
}
};