diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ff4e1896..1e50ca239 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Make Inventory search and browse query boxes expandable. Refs UIIN-2493. * Added support for `containsAny` match option in Advanced search. Refs UIIN-2486. * Inventory search/browse: Do not retain checkbox selections when toggling search segment. Refs UIIN-2477. +* Show Instance record after creating with Fast add option. Refs UIIN-2497. ## [10.0.2] IN PROGRESS diff --git a/src/components/InstancesList/InstancesList.js b/src/components/InstancesList/InstancesList.js index 83dce4f6b..1e368095b 100644 --- a/src/components/InstancesList/InstancesList.js +++ b/src/components/InstancesList/InstancesList.js @@ -544,7 +544,18 @@ class InstancesList extends React.Component { } } - toggleNewFastAddModal = () => { + toggleNewFastAddModal = ({ instanceRecord }) => { + const { + history, + location, + } = this.props; + + if (instanceRecord?.id) { + history.push({ + pathname: `/inventory/view/${instanceRecord.id}`, + search: location.search, + }); + } this.setState((state) => { return { showNewFastAddModal: !state.showNewFastAddModal }; });