Show node on map in confirmation before deleting it.
This commit is contained in:
parent
3b79e807ba
commit
aa0d63fd44
10 changed files with 205 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { SortDirection, toIsArray, type TypeGuard } from "@/types";
|
||||
import type { Headers } from "request";
|
||||
import { parseInteger } from "@/utils/Numbers";
|
||||
import { parseToInteger } from "@/utils/Numbers";
|
||||
|
||||
type Method = "GET" | "PUT" | "POST" | "DELETE";
|
||||
|
||||
|
|
@ -172,7 +172,7 @@ class Api {
|
|||
...filter,
|
||||
});
|
||||
const totalStr = response.headers.get("x-total-count");
|
||||
const total = parseInteger(totalStr, 10);
|
||||
const total = parseToInteger(totalStr, 10);
|
||||
|
||||
return {
|
||||
entries: response.result,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue