From 977950fc555c4f8a6342be3909b5ab6bb01b5f95 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 19:04:37 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../frontend/core/components/DateTimeSelector.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/electron/frontend/core/components/DateTimeSelector.js b/src/electron/frontend/core/components/DateTimeSelector.js index 3d622ef09..8ee2c6261 100644 --- a/src/electron/frontend/core/components/DateTimeSelector.js +++ b/src/electron/frontend/core/components/DateTimeSelector.js @@ -38,14 +38,13 @@ export function extractISOString( export const renderDateTime = (value) => { if (typeof value === "string") return extractISOString(new Date(value)); return value; -} +}; -export const resolveDateTime = renderDateTime +export const resolveDateTime = renderDateTime; // const resolveDateTime = (value) => { // if (typeof value === "string") return extractISOString(new Date(value), { offset: true }); // return value; -// } - +// } export class DateTimeSelector extends LitElement { static get styles() { @@ -74,22 +73,21 @@ export class DateTimeSelector extends LitElement { } get min() { - return this.input.min + return this.input.min; } set min(value) { - this.input.min = value + this.input.min = value; } get max() { - return this.input.max + return this.input.max; } set max(value) { - this.input.max = value + this.input.max = value; } - constructor({ value, min, max } = {}) { super(); this.input = document.createElement("input");