fix(lint): resolve ESLint errors in form dialogs and error boundary

- Replace useEffect setState pattern with initial state from props +
  key-based remount in SiteFormDialog and SectorFormDialog
- Fix explicit-any violation in error boundary context assignment

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-19 13:41:16 -05:00
parent 8a723d855c
commit 0cc09ddc56
5 changed files with 14 additions and 43 deletions

View File

@@ -39,6 +39,7 @@ function SitesPage() {
/>
<SiteFormDialog open={createOpen} onOpenChange={setCreateOpen} tenantId={tenantId} />
<SiteFormDialog
key={editSite?.id ?? 'new'}
open={!!editSite}
onOpenChange={(open) => {
if (!open) setEditSite(null)