coolify/app/Livewire/Project
Andras Bacsai 74c70b431c fix: prevent TypeError in database General components with null server
Nullable server + guard to avoid TypeError/NPE. Don't terminate the app, terminate the bug.

Changes:
- Made Server property nullable (?Server $server = null) in all 8 database General components
- Added guard clause in mount() to check for null server before accessing it
- Displays user-friendly error message when destination server is not configured
- Prevents crashes in methods like isLogDrainEnabled() and sslCertificates()

Fixed components:
- Mariadb, Dragonfly, Clickhouse, Keydb
- Mysql, Mongodb, Redis, Postgresql

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 17:04:48 +02:00
..
Application fix validation on a few views 2025-10-06 21:25:24 +02:00
Database fix: prevent TypeError in database General components with null server 2025-10-14 17:04:48 +02:00
New fix(core): set default base_directory and include in submit method 2025-10-07 14:12:07 +02:00
Resource fix: enable docker network connection for pgadmin service 2025-10-13 14:13:40 +02:00
Service fix: prevent duplicate services on image change and enable real-time UI refresh 2025-10-14 10:12:36 +02:00
Shared fix(environment): clear computed property cache after adding environment variables 2025-10-07 13:57:59 +02:00
AddEmpty.php fix(project): update redirect logic after resource creation to include environment UUID 2025-10-07 20:46:32 +02:00
CloneMe.php fix(clone): update destinations method call to ensure correct retrieval of selected destination 2025-09-18 13:44:56 +02:00
DeleteEnvironment.php feat(auth): enhance authorization checks in Livewire components for resource management 2025-08-26 10:27:38 +02:00
DeleteProject.php feat(auth): enhance authorization checks in Livewire components for resource management 2025-08-26 10:27:38 +02:00
Edit.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00
EnvironmentEdit.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00
Index.php feat(project): enhance project index with resource creation capabilities 2025-10-07 17:17:31 +02:00
Show.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00