Skip to content

Commit

Permalink
Fix: Fix loading inheritor users for user deletion confirmation dialog
Browse files Browse the repository at this point in the history
It seems loadEntities function signature was refactored and not adjusted
at the user list page for loading all users. The list of all users is
used in the user deletion confirmation dialog. Therefore no user could
be selected as inheritor.
  • Loading branch information
bjoernricks committed Dec 1, 2023
1 parent 6ade928 commit a765583
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/web/pages/users/listpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {connect} from 'react-redux';

import _ from 'gmp/locale';

import {USERS_FILTER_FILTER, ALL_FILTER} from 'gmp/models/filter';
import {USERS_FILTER_FILTER} from 'gmp/models/filter';

import {isDefined} from 'gmp/utils/identity';

Expand All @@ -47,6 +47,7 @@ import {createFilterDialog} from 'web/components/powerfilter/dialog';

import {
loadEntities,
loadAllEntities,
selector as entitiesSelector,
} from 'web/store/entities/users';

Expand Down Expand Up @@ -255,12 +256,12 @@ UsersPage.propTypes = {
const mapStateToProps = state => {
const selector = entitiesSelector(state);
return {
allUsers: selector.getEntities(ALL_FILTER),
allUsers: selector.getAllEntities(),
};
};

const mapDispatchToProps = (dispatch, {gmp}) => ({
loadAll: () => dispatch(loadEntities({gmp, filter: ALL_FILTER})),
loadAll: () => dispatch(loadAllEntities(gmp)()),
});

export default compose(
Expand Down

0 comments on commit a765583

Please sign in to comment.