Skip to content

Commit b9e5fc7

Browse files
committed
fix: allow deleting entry id 0
1 parent f81da5c commit b9e5fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dispenser-schedule-card.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class DispenserScheduleCard extends LitElement {
164164
}
165165

166166
handleRemoveEntry(entry: EditScheduleEntry) {
167-
if (!entry.id || !this._config.actions?.remove) {
167+
if (entry.id === null || !this._config.actions?.remove) {
168168
return;
169169
}
170170
const [domain, action] = this._config.actions.remove.split('.');

0 commit comments

Comments
 (0)