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 954cc02 commit 719deafCopy full SHA for 719deaf
1 file changed
frontend/src/ts/modals/edit-tag.ts
@@ -16,7 +16,6 @@ function errorMessage(e: unknown): string {
16
return e instanceof Error ? e.message : String(e);
17
}
18
19
-const cleanTagName = (tagName: string): string => tagName.replaceAll(" ", "_");
20
const tagNameValidation = async (tagName: string): Promise<IsValidResponse> => {
21
const validationResult = TagNameSchema.safeParse(normalizeName(tagName));
22
if (validationResult.success) return true;
@@ -37,9 +36,7 @@ const actionModals: Record<Action, SimpleModal> = {
37
36
],
38
buttonText: "add",
39
execFn: async (_thisPopup, propTagName) => {
40
- const tagName = TagNameSchema.parse(
41
- cleanTagName(normalizeName(propTagName)),
42
- );
+ const tagName = TagNameSchema.parse(normalizeName(propTagName));
43
44
try {
45
await insertTag(tagName);
0 commit comments