mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-14 09:16:05 +01:00
Fixed regression in collections lists where items could get wiped out entirely after adding/removing items and saving
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user