|
104 | 104 | // as to be inherited or not by a previous interaction with the modal. |
105 | 105 | return Boolean( |
106 | 106 | this.parent && |
107 | | - this.parent?.extra_fields?.inherit_metadata && |
| 107 | + this.parent?.extra_fields?.inherited_metadata && |
108 | 108 | Object.keys(this.inheritableMetadataItems).every( |
109 | | - field => !isUndefined(this.parent.extra_fields.inherit_metadata[field]) |
| 109 | + field => !isUndefined(this.parent.extra_fields.inherited_metadata[field]) |
110 | 110 | ) |
111 | 111 | ); |
112 | 112 | }, |
|
203 | 203 | ContentNode.getAncestors(this.parent.id).then(ancestors => { |
204 | 204 | for (const field of inheritableFields) { |
205 | 205 | if ( |
206 | | - this.parent.extra_fields.inherit_metadata && |
207 | | - this.parent.extra_fields.inherit_metadata[field] |
| 206 | + this.parent.extra_fields.inherited_metadata && |
| 207 | + this.parent.extra_fields.inherited_metadata[field] |
208 | 208 | ) { |
209 | | - this.checks[field] = this.parent.extra_fields.inherit_metadata[field]; |
| 209 | + this.checks[field] = this.parent.extra_fields.inherited_metadata[field]; |
210 | 210 | } |
211 | 211 | } |
212 | 212 | this.categories = ancestors.reduce((acc, ancestor) => { |
|
258 | 258 | // but just in case, return |
259 | 259 | return; |
260 | 260 | } |
261 | | - const inherit_metadata = { |
262 | | - ...(this.parent?.extra_fields.inherit_metadata || {}), |
| 261 | + const inherited_metadata = { |
| 262 | + ...(this.parent?.extra_fields.inherited_metadata || {}), |
263 | 263 | }; |
264 | 264 | for (const field of inheritableFields) { |
265 | 265 | if (this.inheritableMetadataItems[field]) { |
266 | 266 | // Only store preferences for fields that have been shown to the user as inheritable |
267 | | - inherit_metadata[field] = this.checks[field]; |
| 267 | + inherited_metadata[field] = this.checks[field]; |
268 | 268 | } |
269 | 269 | } |
270 | 270 | this.updateContentNode({ |
271 | 271 | id: this.parent.id, |
272 | 272 | extra_fields: { |
273 | | - inherit_metadata, |
| 273 | + inherited_metadata, |
274 | 274 | }, |
275 | 275 | }); |
276 | 276 | }, |
|
0 commit comments