Update frontend/src/hooks/tools/automate/useSavedAutomations.ts

Co-authored-by: James Brunton <jbrunton96@gmail.com>
This commit is contained in:
ConnorYoh 2025-08-26 16:50:08 +01:00 committed by GitHub
parent 8fb352345c
commit 18285939ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ export function useSavedAutomations() {
const { automationStorage } = await import('../../../services/automationStorage'); const { automationStorage } = await import('../../../services/automationStorage');
// Map suggested automation icons to MUI icon keys // Map suggested automation icons to MUI icon keys
const getIconKey = (suggestedIcon: any): string => { const getIconKey = (suggestedIcon: {id: string}): string => {
// Check the automation ID or name to determine the appropriate icon // Check the automation ID or name to determine the appropriate icon
switch (suggestedAutomation.id) { switch (suggestedAutomation.id) {
case 'secure-pdf-ingestion': case 'secure-pdf-ingestion':