Skip to content

Commit

Permalink
Merge pull request #1053 from karelhala/fix-sid-pagination
Browse files Browse the repository at this point in the history
Fix get all SIDs by using correct function
  • Loading branch information
Hyperkid123 authored Nov 2, 2020
2 parents daae19e + 73c3c72 commit 30d81e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/App/GlobalFilter/TagsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import React, { useState, useEffect, useCallback } from 'react';
import PropTypes from 'prop-types';
import { useSelector, useDispatch, shallowEqual } from 'react-redux';
import { TagModal } from '@redhat-cloud-services/frontend-components/components/cjs/TagModal';
import { fetchAllTags } from '../../redux/actions';
import { fetchAllTags, fetchAllSIDs } from '../../redux/actions';
import debounce from 'lodash/debounce';
import flatMap from 'lodash/flatMap';
import { getAllSIDs } from './tagsApi';

const useMetaSelector = (key) =>
useSelector(
Expand Down Expand Up @@ -135,7 +134,7 @@ const TagsModal = ({ isOpen, filterTagsBy, onApplyTags, toggleModal, selectedTag
),
(pagination) =>
dispatch(
getAllSIDs(
fetchAllSIDs(
{
registeredWith: filterScope,
activeTags: selectedTags,
Expand Down

0 comments on commit 30d81e3

Please sign in to comment.