From 54f82df3c3f61b81f33dfc0f014ec63e6ff91dbd Mon Sep 17 00:00:00 2001 From: geraldglynn Date: Mon, 9 Mar 2020 01:59:15 +0000 Subject: [PATCH] improvement: add isShownKey prop to Operation to allow overriding (#5196) * Added optional isShownKey prop to Componenent to allow overriding * Removed unneccasry before is isShwonKey * Added PropTypes to isShownKey * Added isShownKey to and removed it from * Removed isShwonKey prop it from * revert package-lock.json Co-authored-by: kyle shockey --- src/core/plugins/deep-linking/operation-wrapper.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/plugins/deep-linking/operation-wrapper.jsx b/src/core/plugins/deep-linking/operation-wrapper.jsx index ab2fb8e4..bc7bd661 100644 --- a/src/core/plugins/deep-linking/operation-wrapper.jsx +++ b/src/core/plugins/deep-linking/operation-wrapper.jsx @@ -10,7 +10,8 @@ const Wrapper = (Ori, system) => class OperationWrapper extends React.Component onLoad = (ref) => { const { operation } = this.props const { tag, operationId } = operation.toObject() - const isShownKey = ["operations", tag, operationId] + let { isShownKey } = operation.toObject() + isShownKey = isShownKey || ["operations", tag, operationId] system.layoutActions.readyToScroll(isShownKey, ref) }