mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Retain event data when moving/resizing schedule item (#23621)
* Retain event data when moving/resizing schedule item * update from suggestion
This commit is contained in:
parent
b1acf9a057
commit
f75f4b9733
@ -296,6 +296,7 @@ class HaScheduleForm extends LitElement {
|
||||
|
||||
const endFormatted = formatTime24h(end, this.hass.locale, this.hass.config);
|
||||
newValue[day][index] = {
|
||||
...newValue[day][index],
|
||||
from: value.from,
|
||||
to:
|
||||
!isSameDay(start, end) || endFormatted === "0:00"
|
||||
@ -322,6 +323,7 @@ class HaScheduleForm extends LitElement {
|
||||
|
||||
const endFormatted = formatTime24h(end, this.hass.locale, this.hass.config);
|
||||
const event = {
|
||||
...newValue[day][index],
|
||||
from: formatTime24h(start, this.hass.locale, this.hass.config),
|
||||
to:
|
||||
!isSameDay(start, end) || endFormatted === "0:00"
|
||||
|
Loading…
x
Reference in New Issue
Block a user