mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 04:23:34 +00:00
After delete, Livewire still re-renders the source change view (modal $refresh / morph). Policy @can checks then call isAdminOfTeam() with a null team_id and throw a TypeError (HTTP 500) before the redirect. Guard null team_id in GitlabAppPolicy and GithubAppPolicy, clear the Livewire model after delete, and skip @can when the model is gone.