Crash when adding IP to blacklist – Minified React error #31
Hello,
I have an issue when adding an IP address to the blacklist in the Swetrix dashboard, the UI crashes with a React runtime error.
Steps to reproduce
- Go to Dashboard → Settings → Shields → Blacklist (IP filtering)
- Enter an IP address, like 8.8.8.8
- Click "save"
Expected behavior The IP should be added successfully, or a validation error should be displayed to the user.
Actual behavior The application crashes and shows the following error:
The app has crashed. We are sorry about that :( Please, tell us about it at [email protected]
Minified React error #31; visit https://react.dev/errors/31?args[]=%5Bobject%20Error%5D for the full message or use the non-minified dev environment for full errors and additional helpful warnings. Hide crash stack Error: Minified React error #31; visit https://react.dev/errors/31?args[]=%5Bobject%20Error%5D for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at Pu (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:37796) at ll (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:43157) at https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:43402 at Dl (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:67139) at Vs (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:82638) at zd (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:116564) at py (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:115641) at Yf (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:115477) at hd (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:112309) at Bd (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:124101)
Environment
Swetrix: self-hosted Browser: Chrome OS: macOS
Thanks !
Hey, thanks for reporting it, will be fixed in the next Swetrix CE v5 release :)
Thanks a lot !
Should be fixed in v5