Skip to content

Commit e7ae0b9

Browse files
committedFeb 14, 2024
Fixed: Refresh tags state to clear removed tags by housekeeping
(cherry picked from commit 2510f44c25bee6fede27d9fa2b9614176d12cb55) (cherry picked from commit ed27bcf213bdbc5cede650f89eb65593dc9631b4)
1 parent 0431b25 commit e7ae0b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎frontend/src/Settings/Tags/TagsConnector.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { Component } from 'react';
33
import { connect } from 'react-redux';
44
import { createSelector } from 'reselect';
55
import { fetchDelayProfiles, fetchDownloadClients, fetchImportLists, fetchIndexers, fetchNotifications, fetchReleaseProfiles } from 'Store/Actions/settingsActions';
6-
import { fetchTagDetails } from 'Store/Actions/tagActions';
6+
import { fetchTagDetails, fetchTags } from 'Store/Actions/tagActions';
77
import Tags from './Tags';
88

99
function createMapStateToProps() {
@@ -25,6 +25,7 @@ function createMapStateToProps() {
2525
}
2626

2727
const mapDispatchToProps = {
28+
dispatchFetchTags: fetchTags,
2829
dispatchFetchTagDetails: fetchTagDetails,
2930
dispatchFetchDelayProfiles: fetchDelayProfiles,
3031
dispatchFetchImportLists: fetchImportLists,
@@ -41,6 +42,7 @@ class MetadatasConnector extends Component {
4142

4243
componentDidMount() {
4344
const {
45+
dispatchFetchTags,
4446
dispatchFetchTagDetails,
4547
dispatchFetchDelayProfiles,
4648
dispatchFetchImportLists,
@@ -50,6 +52,7 @@ class MetadatasConnector extends Component {
5052
dispatchFetchDownloadClients
5153
} = this.props;
5254

55+
dispatchFetchTags();
5356
dispatchFetchTagDetails();
5457
dispatchFetchDelayProfiles();
5558
dispatchFetchImportLists();
@@ -72,6 +75,7 @@ class MetadatasConnector extends Component {
7275
}
7376

7477
MetadatasConnector.propTypes = {
78+
dispatchFetchTags: PropTypes.func.isRequired,
7579
dispatchFetchTagDetails: PropTypes.func.isRequired,
7680
dispatchFetchDelayProfiles: PropTypes.func.isRequired,
7781
dispatchFetchImportLists: PropTypes.func.isRequired,

0 commit comments

Comments
 (0)
Please sign in to comment.