From 431f0dce4ca54a7f25efdc360421c5c100599ae5 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Wed, 10 Nov 2021 10:58:11 +1000 Subject: [PATCH] DEV: Update discourse-local-dates for eslint shorthand rule (#14872) See https://github.com/discourse/eslint-config-discourse/commit/4f7aba06c03fdd22bb26669aeb8ed4af3127c409 --- .../components/discourse-local-dates-create-form.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6 b/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6 index ad7c073e2fc..2fdfa3f6690 100644 --- a/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6 +++ b/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6 @@ -211,7 +211,7 @@ export default Component.extend({ previewedFormats(formats) { return formats.map((format) => { return { - format: format, + format, preview: moment().format(format), }; });