Skip to content

Commit 6d69dde

Browse files
authored
fix(date-range): show date format from the properties (ToolJet#1733)
1 parent 92da33c commit 6d69dde

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/src/Editor/Components/DaterangePicker.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ export const DaterangePicker = function DaterangePicker({
2626
const end = dates.endDate;
2727

2828
if (start) {
29-
setExposedVariable('startDate', start.format(formatProp.value));
29+
setExposedVariable('startDate', start.format(formatProp));
3030
}
3131

3232
if (end) {
33-
setExposedVariable('endDate', end.format(formatProp.value));
33+
setExposedVariable('endDate', end.format(formatProp));
3434
}
3535

3636
setStartDate(start);
@@ -54,6 +54,7 @@ export const DaterangePicker = function DaterangePicker({
5454
onFocusChange={(focus) => focusChanged(focus)}
5555
focusedInput={focusedInput}
5656
hideKeyboardShortcutsPanel={true}
57+
displayFormat={formatProp}
5758
/>
5859
</div>
5960
);

0 commit comments

Comments
 (0)