mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): clarify comparison in usePanel
This commit is contained in:
parent
895cb8637e
commit
e16b55816f
@ -129,7 +129,7 @@ export const usePanel = (arg: UsePanelOptions): UsePanelReturn => {
|
|||||||
|
|
||||||
// If currentSize is 0, the panel is collapsed, so we don't want to resize it
|
// If currentSize is 0, the panel is collapsed, so we don't want to resize it
|
||||||
// If it's not 0, but less than the minSize, resize it
|
// If it's not 0, but less than the minSize, resize it
|
||||||
if (currentSize && currentSize < minSizePct) {
|
if (currentSize > 0 && currentSize < minSizePct) {
|
||||||
panelHandleRef.current.resize(minSizePct);
|
panelHandleRef.current.resize(minSizePct);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user