We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3700847 commit c75b897Copy full SHA for c75b897
src/lib/fetchers/updateTagValueNoLogIn.ts
@@ -19,7 +19,7 @@ export async function updateTagValueNoLogIn({
19
}) {
20
if (!newTagValue || !osmType || !osmId) {
21
// if the request cannot be made at all, the user gets an error toast
22
- postErrorMessage();
+ postErrorMessage?.();
23
throw new Error("Missing or undefined parameters.");
24
}
25
@@ -48,6 +48,5 @@ export async function updateTagValueNoLogIn({
48
throw new Error("Could not update");
49
50
51
- const text = response.text();
52
- return text;
+ return response.text();
53
0 commit comments