Commit b9508d73 authored by tom's avatar tom

fix converter

parent 4925c118
...@@ -23,8 +23,8 @@ export function convertFormDataToRequestsBody(data: FormFields): Array<SubmitReq ...@@ -23,8 +23,8 @@ export function convertFormDataToRequestsBody(data: FormFields): Array<SubmitReq
tagType: tag.type.value, tagType: tag.type.value,
description: data.description, description: data.description,
meta: _pickBy({ meta: _pickBy({
bgColor: tag.bgColor, bgColor: tag.bgColor ? `#${ tag.bgColor }` : undefined,
textColor: tag.textColor, textColor: tag.textColor ? `#${ tag.textColor }` : undefined,
tagUrl: tag.url, tagUrl: tag.url,
tooltipDescription: tag.tooltipDescription, tooltipDescription: tag.tooltipDescription,
}, Boolean), }, Boolean),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment