Skip to content

Commit

Permalink
improvement: add isShownKey prop to Operation to allow overriding (#5196
Browse files Browse the repository at this point in the history
)

* 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 <kyleshockey@gmail.com>
  • Loading branch information
geraldglynn and shockey authored Mar 9, 2020
1 parent a2b37ec commit 54f82df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/plugins/deep-linking/operation-wrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 54f82df

Please sign in to comment.