mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
fixes before merge
This commit is contained in:
parent
edaf5df9e0
commit
2e83bb4a16
2 changed files with 2 additions and 3 deletions
|
|
@ -27,7 +27,6 @@ export default function DhpApplicationMixin(Base) {
|
||||||
|
|
||||||
async _prepareContext(_options, objectPath = 'document') {
|
async _prepareContext(_options, objectPath = 'document') {
|
||||||
const context = await super._prepareContext(_options);
|
const context = await super._prepareContext(_options);
|
||||||
console.log(this, objectPath)
|
|
||||||
context.source = this[objectPath].toObject();
|
context.source = this[objectPath].toObject();
|
||||||
context.fields = this[objectPath].schema.fields;
|
context.fields = this[objectPath].schema.fields;
|
||||||
context.systemFields = this[objectPath].system ? this[objectPath].system.schema.fields : {};
|
context.systemFields = this[objectPath].system ? this[objectPath].system.schema.fields : {};
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ export default class ForeignDocumentUUIDField extends foundry.data.fields.Docume
|
||||||
/**@override */
|
/**@override */
|
||||||
initialize(value, _model, _options = {}) {
|
initialize(value, _model, _options = {}) {
|
||||||
if (this.idOnly) return value;
|
if (this.idOnly) return value;
|
||||||
return (() => {
|
return () => {
|
||||||
try {
|
try {
|
||||||
const doc = fromUuidSync(value);
|
const doc = fromUuidSync(value);
|
||||||
return doc;
|
return doc;
|
||||||
|
|
@ -32,7 +32,7 @@ export default class ForeignDocumentUUIDField extends foundry.data.fields.Docume
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return value ?? null;
|
return value ?? null;
|
||||||
}
|
}
|
||||||
})();
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**@override */
|
/**@override */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue