unsavedChangesAlerts() does not work and generates an error - Filament