Skip to content

Commit

Permalink
Fixing null pointer in port-forward
Browse files Browse the repository at this point in the history
  • Loading branch information
relferreira committed Dec 9, 2019
1 parent fd861e8 commit 780ef96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/containers/PortForward.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function PortForward() {

useEffect(() => {
let storedPids = getStoredPids();
setPids(Object.values(storedPids));
if (storedPids) setPids(Object.values(storedPids));
}, []);

return (
Expand Down

0 comments on commit 780ef96

Please sign in to comment.