Adjust rivals codes with database

dev
Platon Yasev 3 years ago
parent 07c7ccaf0d
commit f90cc3ef0a

@ -3,7 +3,7 @@ import { otherPostamatesLayer } from "./layers-config";
import { useLayersVisibility } from "../../stores/useLayersVisibility";
import { LAYER_IDS } from "./constants";
const typeFilter = ["==", ["get", "type"], "постамат"];
const typeFilter = ["==", ["get", "type"], "post"];
export const OtherPostamates = () => {
const { isVisible } = useLayersVisibility();

@ -3,7 +3,7 @@ import { pvzPointLayer } from "./layers-config";
import { useLayersVisibility } from "../../stores/useLayersVisibility";
import { LAYER_IDS } from "./constants";
const typeFilter = ["==", ["get", "type"], "пвз"];
const typeFilter = ["==", ["get", "type"], "pvz"];
export const PVZ = () => {
const { isVisible } = useLayersVisibility();

@ -56,7 +56,10 @@ export const OnApprovalTable = ({ fullWidth }) => {
const params = new URLSearchParams({
page,
page_size: pageSize,
"status[]": statuses,
"status[]":
statuses.length > 0
? statuses
: [STATUSES.onApproval, STATUSES.working, STATUSES.cancelled],
});
return await getPoints(params, region);

Loading…
Cancel
Save