Skip to content

Commit

Permalink
Added check while fetching the queryPanel height from localStorage (T…
Browse files Browse the repository at this point in the history
  • Loading branch information
kavinvenkatachalam authored Oct 20, 2022
1 parent df0ec93 commit 81a736c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/Editor/QueryManager/QueryPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const QueryPanel = ({ queryPanelHeight, children }) => {
const isComponentMounted = useRef(false);
const queryPaneRef = useRef(null);
const [isDragging, setDragging] = useState(false);
const [height, setHeight] = useState(queryManagerPreferences?.queryPanelHeight ?? queryPanelHeight);
const [height, setHeight] = useState(
queryManagerPreferences?.queryPanelHeight > 95 ? 30 : queryManagerPreferences.queryPanelHeight ?? queryPanelHeight
);
const [isTopOfQueryPanel, setTopOfQueryPanel] = useState(false);

useEffect(() => {
Expand Down

0 comments on commit 81a736c

Please sign in to comment.