Skip to content

Commit

Permalink
EPMRPP-97602 || remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO committed Jan 20, 2025
1 parent 8b57e42 commit ccc73c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ const FilterEntitiesURL = ({
}) => {
const handleChange = useCallback(
(newEntities) => {
console.log('newEntities', newEntities);
console.log('entities', entities);
if (isEqual(newEntities, entities)) {
return;
}
Expand Down Expand Up @@ -112,7 +110,7 @@ export const withFilterEntitiesURL = (namespace, prefixQueryKey) => (WrappedComp
});

const { name, ...entriesWithoutName } = filteredEntities;
console.log('entriesWithoutName', entriesWithoutName);

return (
<WrappedComponent {...restProps} entities={entriesWithoutName} onFilterChange={onChange} />
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const FilterContentWrapped = ({
filtersState,
}) => {
const { formatMessage } = useIntl();
const isDisabled = pristine || submitting;

useEffect(() => {
initialize({
Expand Down Expand Up @@ -108,15 +109,15 @@ export const FilterContentWrapped = ({
className={cx('clear-all')}
variant={'text'}
onClick={reset}
disabled={pristine || submitting}
disabled={isDisabled}
>
{formatMessage(messages.clearAllFilters)}
</Button>
<div className={cx('controls')}>
<Button className={cx('cancel')} variant={'ghost'} onClick={closePopover}>
{formatMessage(COMMON_LOCALE_KEYS.CANCEL)}
</Button>
<Button className={cx('apply')} type="submit" disabled={pristine || submitting}>
<Button className={cx('apply')} type="submit" disabled={isDisabled}>
{formatMessage(COMMON_LOCALE_KEYS.APPLY)}
</Button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,6 @@ const SearchFieldWithFilter = withFilter({ filterKey: SEARCH_KEY, namespace: NAM
SearchField,
);

// const wrappedFilter = () => (WrappedComponent) => (props) => {
// const { formatMessage } = useIntl();
// const dispatch = useDispatch();

// return (
// <WrappedComponent
// {...props}
// filteredAction={() => dispatch(fetchFilteredProjectAction())}
// teammatesFilterMessage={formatMessage(messages.teammates)}
// />
// );
// };

// const FiltersFields = withFilterEntitiesURL(NAMESPACE)(wrappedFilter(Filter));
const FiltersFields = withFilterEntitiesURL(NAMESPACE)(Filter);

export const ProjectsPageHeader = ({
Expand Down

0 comments on commit ccc73c9

Please sign in to comment.