This PR resolves the issue raised under #6797. Earlier no view/edit option were present for inActive objects in data-model inside settings. To resolve that following changes were done: 1. `SettingsObjectFieldItemTableRow` was not passing the onEdit with url to `SettingsObjectFieldActiveActionDropdown` to redirect on clicking it. So passed onEdit there. 2. `SettingsObjectFieldActiveActionDropdown` was not implementing the onEdit functionality, so implemented that by creating `handleEdit()` function. 3. `SettingsObjectFieldEdit` was assuming only `activeObjectMetadata `will be coming to render on page. So, when inactive object was accessed the path not found error message was thrown. Thus did changes to manage both active and inactive objects by generalizing the `activeObjectMetadata ` -> `objectMetadata` `activeMetadataField `-> `metadataField`. 4. `findObjectMetadataItemBySlug `function was written inside `useFilteredObjectMetadataItems` for fetching active/inactive object. 5. Updated `SettingsObjectFieldEdit` button to show and change the active to inactive state and vice versa. 6. Test was written for `findObjectMetadataItemBySlug`. --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
Run yarn dev while server running on port 3000