Skip to content

Commit 244fb26

Browse files
committed
fixes
1 parent 0f30005 commit 244fb26

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

src/actions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ function fetchPricelistsSummaries(_, filters = [], pricelistType) {
9393
];
9494
const nodeName = pricelistType === ITEMS_PRICELIST_TYPE ? "itemsPricelists" : "servicesPricelists";
9595
const payload = formatPageQueryWithCount(nodeName, filters, projections);
96-
console.log("payload", payload);
9796
return graphql(payload, "MEDICAL_PRICELIST_SUMMARIES", { pricelistType });
9897
}
9998

src/components/PricelistsFilters.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ import {
1010
} from "@openimis/fe-core";
1111
import { FormControlLabel, Grid, Checkbox } from "@material-ui/core";
1212
import { withTheme, withStyles } from "@material-ui/core/styles";
13-
import {
14-
buildLocationFilter,
15-
shouldDisableRegion
16-
} from "../utils/filtersUtils";
1713

1814
const styles = (theme) => ({
1915
form: {
@@ -30,10 +26,6 @@ const PricelistsFilter = (props) => {
3026
const { formatMessage } = useTranslations("medical_pricelist", modulesManager);
3127

3228
const onRegionChange = (value) => {
33-
if (shouldDisableRegion(filters)) {
34-
return;
35-
}
36-
3729
onChangeFilters([
3830
{ id: "region", value, filter: value ? `location_Uuid: "${value.uuid}"` : null },
3931
{ id: "district", value: null, filter: null },
@@ -45,10 +37,6 @@ const PricelistsFilter = (props) => {
4537
{ id: "district", value, filter: value ? `location_Uuid: "${value.uuid}"` : null }
4638
];
4739

48-
if (value && value.uuid) {
49-
updates.push({ id: "region", value: null, filter: null });
50-
}
51-
5240
onChangeFilters(updates);
5341
};
5442

@@ -58,8 +46,6 @@ const PricelistsFilter = (props) => {
5846

5947
const triggerDebounceName = useDebounceCb(onNameChange, modulesManager.getConf("fe-admin", "debounceTime", 500));
6048

61-
const isRegionDisabled = shouldDisableRegion(filters);
62-
6349
return (
6450
<section className={classes.form}>
6551
<Grid container>
@@ -88,7 +74,6 @@ const PricelistsFilter = (props) => {
8874
value={filters?.region?.value}
8975
withNull={true}
9076
onChange={onRegionChange}
91-
disabled={isRegionDisabled}
9277
/>
9378
</Grid>
9479
}

0 commit comments

Comments
 (0)