fix default panel width (#5403)

* fix default panel width

* lint

---------

Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
This commit is contained in:
Mary Hipp Rogers 2024-01-04 11:04:21 -05:00 committed by GitHub
parent 9e2e740033
commit dd32c632cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,9 +125,8 @@ export const usePanel = (arg: UsePanelOptions): UsePanelReturn => {
_setMinSize(minSizePct);
const currentSize = panelHandleRef.current.getSize();
// Resize if the current size is smaller than the new min size - happens when the window is resized smaller
if (currentSize && currentSize < minSizePct) {
if (panelHandleRef.current.getSize() < minSizePct) {
panelHandleRef.current.resize(minSizePct);
}
});