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 { useLayersVisibility } from "../../stores/useLayersVisibility";
import { LAYER_IDS } from "./constants"; import { LAYER_IDS } from "./constants";
const typeFilter = ["==", ["get", "type"], "постамат"]; const typeFilter = ["==", ["get", "type"], "post"];
export const OtherPostamates = () => { export const OtherPostamates = () => {
const { isVisible } = useLayersVisibility(); const { isVisible } = useLayersVisibility();

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

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

Loading…
Cancel
Save