Fix: added empty string as default for tag color and added regex to resolve issue with multiple spacing in tag names.

This commit is contained in:
Ebezer Igbinoba
2023-08-24 03:59:49 +01:00
parent ae375916e8
commit 9fa28f5b5e
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export const useCreateWsTag = () => {
mutationFn: async ({ workspaceID, tagName, tagColor, tagSlug }) => {
const { data } = await apiRequest.post(`/api/v2/workspace/${workspaceID}/tags`, {
name: tagName,
tagColor: tagColor || null,
tagColor: tagColor || "",
slug: tagSlug
})
return data;
+1 -1
View File
@@ -17,7 +17,7 @@ export type CreateTagDTO = {
workspaceID: string;
tagSlug: string;
tagName: string;
tagColor: string | null;
tagColor: string;
};
export type CreateTagRes = {