mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-02-10 21:49:19 -06:00
fix: initialize deployment status on component mount in AppActionButtons
This commit is contained in:
@@ -27,6 +27,9 @@ export default function AppActionButtons({
|
||||
const { subscribeToStatusChanges, getPodsForApp } = usePodsStatus();
|
||||
|
||||
useEffect(() => {
|
||||
const pods = getPodsForApp(app.id);
|
||||
setDeploaymentStatus(pods?.deploymentStatus ?? 'UNKNOWN');
|
||||
|
||||
const unsubscribe = subscribeToStatusChanges((changedAppIds) => {
|
||||
if (changedAppIds.includes(app.id)) {
|
||||
const pods = getPodsForApp(app.id);
|
||||
|
||||
Reference in New Issue
Block a user