suppress render sheet on updating embedded
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user