aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-01-31 11:05:03 -0500
committerSam Wilkins <samwilkins333@gmail.com>2020-01-31 11:05:03 -0500
commit5ad15ac012262ac15e152b995cbcb042c5b7cf89 (patch)
treefcd3404add281aff240aeb4c9546d0ba16b7d8ec /src/client/views/DocumentDecorations.tsx
parent96de4bf18d5721d2b7957d7adb8ad3393462c4d1 (diff)
parentb0544ea44ef78a93deb9290815f95d6d9308447d (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 7c4391ec0..c5034b901 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -265,7 +265,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
const layoutKey = Cast(dv.props.Document.layoutKey, "string", null);
const collapse = layoutKey !== "layout_icon";
if (collapse) {
- if (layoutKey) dv.props.Document.deiconifyLayout = layoutKey.replace("layout_", "");
+ if (layoutKey && layoutKey !== "layout") dv.props.Document.deiconifyLayout = layoutKey.replace("layout_", "");
dv.setCustomView(collapse, "icon");
} else {
const deiconifyLayout = Cast(dv.props.Document.deiconifyLayout, "string", null);