Skip to content

Commit 3f75e07

Browse files
Update src/DrawerPopup.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 2aaae24 commit 3f75e07

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/DrawerPopup.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,8 @@ const DrawerPopup: React.ForwardRefRenderFunction<
321321
// =========================== Resize ===========================
322322
const wrapperRef = React.useRef<HTMLDivElement>(null);
323323

324-
const isResizable = typeof resizable === 'boolean' ? resizable : !!resizable;
325-
326-
const resizeConfig =
327-
typeof resizable === 'object' && resizable !== null ? resizable : {};
324+
const isResizable = !!resizable;
325+
const resizeConfig = (typeof resizable === 'object' && resizable) || {};
328326

329327
const onInternalResize = useEvent((size: number) => {
330328
setCurrentSize(size);

0 commit comments

Comments
 (0)