Reversed order of custom inputs & notes (#1268)
This commit is contained in:
parent
23127318dc
commit
878c8b8248
|
@ -284,10 +284,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||
};
|
||||
|
||||
const description =
|
||||
reqBody.customInputs.reduce((str, input) => str + input.label + "\n" + input.value + "\n\n", "") +
|
||||
t("additional_notes") +
|
||||
":\n" +
|
||||
reqBody.notes;
|
||||
reqBody.notes +
|
||||
reqBody.customInputs.reduce(
|
||||
(str, input) => str + "<br /><br />" + input.label + ":<br />" + input.value,
|
||||
""
|
||||
);
|
||||
|
||||
const evt: CalendarEvent = {
|
||||
type: eventType.title,
|
||||
|
|
Loading…
Reference in New Issue
Block a user