File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,17 +77,17 @@ function Timer({ lastExecutedAt }) {
77
77
78
78
export const ResultBlock = memo < any > ( function ResultBlock ( { id, layout } ) {
79
79
const store = useContext ( RepoContext ) ! ;
80
- const result = useStore ( store , ( state ) => state . pods [ id ] . result ) ;
81
- const error = useStore ( store , ( state ) => state . pods [ id ] . error ) ;
82
- const stdout = useStore ( store , ( state ) => state . pods [ id ] . stdout ) ;
83
- const running = useStore ( store , ( state ) => state . pods [ id ] . running ) ;
80
+ const result = useStore ( store , ( state ) => state . pods [ id ] ? .result ) ;
81
+ const error = useStore ( store , ( state ) => state . pods [ id ] ? .error ) ;
82
+ const stdout = useStore ( store , ( state ) => state . pods [ id ] ? .stdout ) ;
83
+ const running = useStore ( store , ( state ) => state . pods [ id ] ? .running ) ;
84
84
const autoLayoutROOT = useStore ( store , ( state ) => state . autoLayoutROOT ) ;
85
85
useEffect ( ( ) => {
86
86
autoLayoutROOT ( ) ;
87
87
} , [ running ] ) ;
88
88
const lastExecutedAt = useStore (
89
89
store ,
90
- ( state ) => state . pods [ id ] . lastExecutedAt
90
+ ( state ) => state . pods [ id ] ? .lastExecutedAt
91
91
) ;
92
92
const [ showOutput , setShowOutput ] = useState ( true ) ;
93
93
const hasResult = useStore (
You can’t perform that action at this time.
0 commit comments