Skip to content

Commit

Permalink
fix(initial-state): correct defaultDaemonConfig initial state (#473)
Browse files Browse the repository at this point in the history
There is was missing check if no deploy daemons configured, null value
produced warning logs.

Resolves: #472

Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
  • Loading branch information
andrey18106 authored Dec 23, 2024
1 parent 68f31b2 commit 280d887
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Service/ExAppsPageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public function provideAppApiState(IInitialState $initialState): void {
}

$initialState->provideInitialState('defaultDaemonConfigAccessible', $daemonConfigAccessible);
$initialState->provideInitialState('defaultDaemonConfig', $defaultDaemonConfig);
if ($defaultDaemonConfig !== null) {
$initialState->provideInitialState('defaultDaemonConfig', $defaultDaemonConfig);
}
}
}

0 comments on commit 280d887

Please sign in to comment.