| @@ -119,8 +119,9 @@ | ||
| 119 | 119 | number | null |
| 120 | 120 | >(null); |
| 121 | 121 | |
| 122 | 122 | // Get events from window.yatraAdmin (passed from PHP) |
| 123 | + // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 123 | 124 | const events = (window as any).yatraAdmin?.emailEvents || []; |
| 124 | 125 | |
| 125 | 126 | // Fetch sequence data if editing |
| 126 | 127 | const { data: sequenceData, isLoading: isLoadingSequence } = useQuery({ |
| @@ -134,8 +135,9 @@ | ||
| 134 | 135 | queryKey: ["email-templates"], |
| 135 | 136 | queryFn: () => fetchEmailTemplates(), |
| 136 | 137 | }); |
| 137 | 138 | |
| 139 | + // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 138 | 140 | const templates: EmailTemplate[] = Array.isArray(templatesData) |
| 139 | 141 | ? (templatesData as EmailTemplate[]) |
| 140 | 142 | : []; |
| 141 | 143 | |