Skip to content

Commit

Permalink
QueryFieldPane doesn't dissapear after returning from results page
Browse files Browse the repository at this point in the history
  • Loading branch information
mickol34 authored Oct 18, 2024
1 parent 8b8e12c commit 943bf13
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/mqueryfront/src/query/QueryLayoutManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,24 @@ const QueryLayoutManager = (props) => {
queryResults
) : null;

const queryFieldPane = isCollapsed ? null : (
<div className={resultsTab ? "col-md-6" : "col-md-12"}>
<QueryField
readOnly={!!qhash}
onSubmitQuery={onSubmitQuery}
onEditQuery={onEditQuery}
onParseQuery={onParseQuery}
onTaintSelect={onTaintSelect}
availableTaints={availableTaints}
rawYara={rawYara}
onYaraUpdate={onYaraUpdate}
parsedError={parsedError}
selectedTaints={selectedTaints}
forceSlowQueries={forceSlowQueries}
/>
</div>
);
const queryFieldPane =
qhash && isCollapsed ? null : (
<div className={resultsTab ? "col-md-6" : "col-md-12"}>
<QueryField
readOnly={!!qhash}
onSubmitQuery={onSubmitQuery}
onEditQuery={onEditQuery}
onParseQuery={onParseQuery}
onTaintSelect={onTaintSelect}
availableTaints={availableTaints}
rawYara={rawYara}
onYaraUpdate={onYaraUpdate}
parsedError={parsedError}
selectedTaints={selectedTaints}
forceSlowQueries={forceSlowQueries}
/>
</div>
);

return (
<div className="container-fluid">
Expand Down

0 comments on commit 943bf13

Please sign in to comment.