Skip to content

Commit e16b558

Browse files
fix(ui): clarify comparison in usePanel
1 parent 895cb86 commit e16b558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/frontend/web/src/features/ui/hooks/usePanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const usePanel = (arg: UsePanelOptions): UsePanelReturn => {
129129

130130
// If currentSize is 0, the panel is collapsed, so we don't want to resize it
131131
// If it's not 0, but less than the minSize, resize it
132-
if (currentSize && currentSize < minSizePct) {
132+
if (currentSize > 0 && currentSize < minSizePct) {
133133
panelHandleRef.current.resize(minSizePct);
134134
}
135135
});

0 commit comments

Comments
 (0)