Skip to content

Commit 5b6818a

Browse files
CarinaWolliCarinaWolli
authored andcommitted
fixes issue with variables not working (#3859)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
1 parent 8d0caa5 commit 5b6818a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

packages/features/ee/workflows/components/AddVariablesDropdown.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ interface IAddVariablesDropdown {
99
}
1010

1111
const variables = [
12-
"event_name_workflow",
13-
"organizer_name_workflow",
14-
"attendee_name_workflow",
15-
"event_date_workflow",
16-
"event_time_workflow",
17-
"location_workflow",
18-
"additional_notes_workflow",
12+
"event_name",
13+
"organizer_name",
14+
"attendee_name",
15+
"event_date",
16+
"event_time",
17+
"location",
18+
"additional_notes",
1919
];
2020

2121
export const AddVariablesDropdown = (props: IAddVariablesDropdown) => {
@@ -39,7 +39,7 @@ export const AddVariablesDropdown = (props: IAddVariablesDropdown) => {
3939
type="button"
4040
className="px-5 py-1"
4141
onClick={() => props.addVariable(props.isEmailSubject, variable)}>
42-
{t(variable)}
42+
{t(`${variable}_workflow`)}
4343
</button>
4444
</DropdownMenuItem>
4545
))}

packages/features/ee/workflows/lib/reminders/templates/customTemplate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ const customTemplate = async (text: string, variables: VariablesType, locale: st
8181
}
8282
});
8383
}
84-
dynamicText = dynamicText.replace(`{${variable}}`, "");
8584
});
8685

8786
const textHtml = `<body style="white-space: pre-wrap;">${dynamicText}</body>`;

0 commit comments

Comments
 (0)