Skip to content

Commit 54f82df

Browse files
geraldglynnshockey
geraldglynn
andauthored
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 <OperationWrapper/> and removed it from <Operation /> * Removed isShwonKey prop it from <Operation /> * revert package-lock.json Co-authored-by: kyle shockey <[email protected]>
1 parent a2b37ec commit 54f82df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/plugins/deep-linking/operation-wrapper.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const Wrapper = (Ori, system) => class OperationWrapper extends React.Component
1010
onLoad = (ref) => {
1111
const { operation } = this.props
1212
const { tag, operationId } = operation.toObject()
13-
const isShownKey = ["operations", tag, operationId]
13+
let { isShownKey } = operation.toObject()
14+
isShownKey = isShownKey || ["operations", tag, operationId]
1415
system.layoutActions.readyToScroll(isShownKey, ref)
1516
}
1617

0 commit comments

Comments
 (0)