suppress render sheet on updating embedded

This commit is contained in:
2024-07-09 23:26:49 -05:00
parent 141b06adea
commit 4e37f910a1
2 changed files with 10 additions and 1 deletions
+8 -1
View File
@@ -861,8 +861,9 @@ export class ActorFolderEffect extends PowerEffect {
}
}
const updateOpts = {};
updateOpts.mbItemCreationSource = moduleName;
if (documentType === 'Item') {
updateOpts.renderSheet = null;
updateOpts.renderSheet = false;
}
try {
if (adds[documentType].length > 0) {
@@ -953,3 +954,9 @@ export class ActorFolderEffect extends PowerEffect {
}
}
}
export function embeddedHelperHook(item, data, options) {
if (options?.mbItemCreationSource === moduleName) {
options.renderSheet = false;
}
}