mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
remove compatibility code for migration
This commit is contained in:
@@ -144,10 +144,10 @@ export function useAccountEditPageBaseBase() {
|
||||
account.value.from(newAccount);
|
||||
subAccounts.value = [];
|
||||
|
||||
if (newAccount.childrenAccounts && newAccount.childrenAccounts.length > 0) {
|
||||
for (let i = 0; i < newAccount.childrenAccounts.length; i++) {
|
||||
if (newAccount.subAccounts && newAccount.subAccounts.length > 0) {
|
||||
for (let i = 0; i < newAccount.subAccounts.length; i++) {
|
||||
const subAccount = account.value.createNewSubAccount(userStore.currentUserDefaultCurrency, getCurrentUnixTime());
|
||||
subAccount.from(newAccount.childrenAccounts[i]);
|
||||
subAccount.from(newAccount.subAccounts[i]);
|
||||
|
||||
subAccounts.value.push(subAccount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user