Skip to content

Commit

Permalink
fix: promise rejection error on rollouts list on initial load (#1085)
Browse files Browse the repository at this point in the history
Signed-off-by: Remington Breeze <[email protected]>
  • Loading branch information
rbreeze authored Apr 14, 2021
1 parent 9606f5e commit d9899f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/shared/services/rollout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {NamespaceContext, RolloutAPIContext} from '../context/api';

export const useRollouts = (): RolloutInfo[] => {
const api = React.useContext(RolloutAPIContext);
const namespace = React.useContext(NamespaceContext);
const namespace = React.useContext(NamespaceContext) || 'unknown';
const [rollouts, setRollouts] = React.useState([]);

React.useEffect(() => {
Expand Down

0 comments on commit d9899f8

Please sign in to comment.