Fixed regression in collections lists where items could get wiped out entirely after adding/removing items and saving

This commit is contained in:
Djamil Legato
2016-06-02 10:13:58 -07:00
parent 9c35c8f5a9
commit 719ce4331c
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ export default class CollectionsField {
new RegExp('\\.(\\d+|\\*|' + currentKey + ')\\.', 'g') new RegExp('\\.(\\d+|\\*|' + currentKey + ')\\.', 'g')
]; ];
if (!observedValue) { if (hasCustomKey && !observedValue) {
element.attr(`_${prop}`, element.attr(prop)); element.attr(`_${prop}`, element.attr(prop));
element.attr(prop, null); element.attr(prop, null);
return; return;

File diff suppressed because one or more lines are too long