File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -40,21 +40,22 @@ let make = (~state, ~dispatch) => {
4040
4141 let locations = (state. goblint)# dead_locations;
4242
43- let panel = switch (current) {
43+ let current = state. selected_panel;
44+
45+ let component = switch (current) {
4446 | Some (Warnings ) => <WarningView warnings= {state. warnings} dispatch />
4547 | Some (DeadCode ) => <DeadCodeView locations dispatch />
46- | Some (Parameters ) => <ParameterView parameters />
4748 | Some (Statistics ) => <GvStatisticsView stats= {state. stats} />
49+ | Some (Parameters ) => <ParameterView parameters />
4850 | _ => React . null
4951 };
5052
51- let current = state. selected_panel;
5253 <div className= "panel d-flex flex-column border-right border-left h-25" >
5354 {make_nav_pills(current, dispatch)}
5455 <div className= "tab-content overflow-auto" >
5556 <div className= "tab-pane active" >
56- {panel }
57+ {component }
5758 </div >
5859 </div >
5960 </div >;
60- };
61+ };
You can’t perform that action at this time.
0 commit comments