Adapt land status to saved investment land need
This commit is contained in:
@@ -19,6 +19,12 @@ export function inheritCompatibleFields(scope:string, values:Record<string,unkno
|
||||
const geoConflict=geo.some(key=>(!empty(values[key]) || key in previous) && signature(values[key])!==signature(source[key]) && previous[key]!==signature(values[key]));
|
||||
for(const [key,value] of Object.entries(source)) {
|
||||
if ((allowed && !allowed.includes(key)) || (empty(value) && !(key in previous))) continue;
|
||||
if (key === 'context_applicability_snapshot') {
|
||||
// Read-only assessment of the current dossier, not a deliberate form answer.
|
||||
if (signature(values[key]) !== signature(value)) patch[key] = value;
|
||||
next[key] = signature(value); inherited.push(key);
|
||||
continue;
|
||||
}
|
||||
if (key.endsWith('_label')) {
|
||||
const base = key.slice(0, -6);
|
||||
const baseOwned = previous[base] === signature(values[base]);
|
||||
|
||||
Reference in New Issue
Block a user