Skip to content

Commit 9b451be

Browse files
committed
Make sure the fuid is not an empty string
1 parent 42acd9b commit 9b451be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/helpers/foundry-utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export default class FoundryUtils {
375375
/** @type ItemMigrationAction[] **/
376376
const updates = [];
377377
for (const item of items) {
378-
if (item.system.fuid) {
378+
if (item.system.fuid && item.system.fuid !== '') {
379379
const compendiumEntry = await CompendiumIndex.instance.getItemByFuid(item.system.fuid);
380380
if (!compendiumEntry) {
381381
continue;

0 commit comments

Comments
 (0)