-
-
Version history:
-
}>
- {itemName}
-
+const HistoryBackLink = ({ itemName, link }) => {
+ return (
+
+
+
+
+
+
+
+
+
+ Version history:{' '}
+
}>{itemName}
- )
+
+ )
}
HistoryBackLink.propTypes = {
- link: PropTypes.string.isRequired,
itemName: PropTypes.string.isRequired,
+ link: PropTypes.string.isRequired
}
export default HistoryBackLink
diff --git a/src/components/ActionBar/ActionBar.js b/src/components/ActionBar/ActionBar.js
index 08d756800..39a1c972e 100644
--- a/src/components/ActionBar/ActionBar.js
+++ b/src/components/ActionBar/ActionBar.js
@@ -192,7 +192,7 @@ const ActionBar = ({
const newFilters = { ...filters, ...formValues }
if (filtersHelperResult) {
- if (params.name || params.hash) {
+ if (params.name || params.id) {
navigate(navigateLink)
}
@@ -220,10 +220,10 @@ const ActionBar = ({
filtersHelper,
changes,
dispatch,
- saveFilters,
params.name,
- params.hash,
+ params.id,
filtersStore.groupBy,
+ saveFilters,
removeSelectedItem,
setSelectedRowData,
toggleAllRows,