Removed setting the redundant "entryType" dataset from the "onAddNew" and "onEdit" methods of the JournalEntryEditor class. It is not used anymore.

This commit is contained in:
依瑪貓 2023-03-18 18:11:32 +08:00
parent c9453d3023
commit 46e34bb89a

View File

@ -463,7 +463,6 @@ class JournalEntryEditor {
this.entry = null;
this.#side = side;
this.entryType = this.#side.entryType;
this.#element.dataset.entryType = side.entryType;
this.isNeedOffset = false;
this.#originalEntryContainer.classList.add("d-none");
this.#originalEntryControl.classList.remove("accounting-not-empty");
@ -508,7 +507,6 @@ class JournalEntryEditor {
this.entry = entry;
this.#side = entry.side;
this.entryType = this.#side.entryType;
this.#element.dataset.entryType = entry.entryType;
this.isNeedOffset = entry.isOriginalEntry();
if (originalEntryId === "") {
this.#originalEntryContainer.classList.add("d-none");