projects
/
arvados-workbench2.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e40e247
)
21128: fixed resize crash Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
author
Lisa Knox <lisaknox83@gmail.com>
Mon, 4 Dec 2023 19:15:24 +0000
(14:15 -0500)
committer
Lisa Knox <lisaknox83@gmail.com>
Mon, 4 Dec 2023 19:15:24 +0000
(14:15 -0500)
src/views/workbench/workbench.tsx
patch
|
blob
|
history
diff --git
a/src/views/workbench/workbench.tsx
b/src/views/workbench/workbench.tsx
index be2542515bb6e478103e4fb38802ed32d2dec7c6..a02d346f2857f09c6a31cae7d815a6de19be7c66 100644
(file)
--- a/
src/views/workbench/workbench.tsx
+++ b/
src/views/workbench/workbench.tsx
@@
-300,7
+300,7
@@
const applyCollapsedState = isCollapsed => {
export const WorkbenchPanel = withStyles(styles)((props: WorkbenchPanelProps) => {
//panel size will not scale automatically on window resize, so we do it manually
- window.addEventListener("resize", () => applyCollapsedState(props.sidePanelIsCollapsed));
+
if (props && props.sidePanelIsCollapsed)
window.addEventListener("resize", () => applyCollapsedState(props.sidePanelIsCollapsed));
applyCollapsedState(props.sidePanelIsCollapsed);
return (