fix(CommunityNewPermissionView): Use only key/amount to compare holdings when tracking duplicates

This commit is contained in:
Michał Cieślak 2023-02-21 20:54:38 +01:00 committed by r4bbit
parent c85a8d3647
commit 1e7e2084a7

View File

@ -61,7 +61,7 @@ StatusScrollView {
modelA: root.dirtyValues.holdingsModel modelA: root.dirtyValues.holdingsModel
modelB: root.holdingsModel modelB: root.holdingsModel
roles: ["key", "name", "shortName", "amount"] roles: ["key", "amount"]
mode: ModelsComparator.CompareMode.Set mode: ModelsComparator.CompareMode.Set
} }
@ -130,7 +130,6 @@ StatusScrollView {
function loadInitValues() { function loadInitValues() {
// Holdings: // Holdings:
d.dirtyValues.holdingsModel.clear() d.dirtyValues.holdingsModel.clear()
d.dirtyValues.holdingsModel.append( d.dirtyValues.holdingsModel.append(
ModelUtils.modelToArray(root.holdingsModel, ["type", "key", "amount"])) ModelUtils.modelToArray(root.holdingsModel, ["type", "key", "amount"]))