Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Variant Encumberance + Midi item edit issue #654

Open
PwQt opened this issue Jun 26, 2024 · 0 comments
Open

[BUG] Variant Encumberance + Midi item edit issue #654

PwQt opened this issue Jun 26, 2024 · 0 comments

Comments

@PwQt
Copy link
Contributor

PwQt commented Jun 26, 2024

I dunno whether it's a VE+M issue or is this something to handle in Tidy.

  • Foundry version: v12 ONLY, v11 works fine
  • D&D version: 3.2.1

On a world that was made from scratch on v12 and 3.2.1.
Steps to reproduce the bug:

  1. Have both Tidy5e and VE+Midi enabled
  2. Edit an item
  3. Close the edit window
  4. Try editing the same item again

Get following errors:

Uncaught (in promise) TypeError: this.properties.has is not a function
[Detected 2 packages: system:dnd5e, tidy5e-sheet]
    get chatProperties equipment.mjs:190
    getChatData item.mjs:1479
    showCard ItemInfoCard.svelte:114
    timer ItemInfoCard.svelte:173
    setTimeout handler*instance$1e/$$self.$$.update/< ItemInfoCard.svelte:173
    update ItemInfoCard.svelte:173
    update scheduler.js:115
    flush scheduler.js:79
    promise callback*schedule_update scheduler.js:20
    make_dirty Component.js:81
    ctx Component.js:139
    1e main.js:93974
    set index.js:56
    update2 index.js:69
    onMouseEnter ItemTableRow.svelte:67
    listen dom.js:361
    m main.js:20041
    mount_component Component.js:44
    m main.js:26425
    m main.js:26578
    m main.js:18420
    m main.js:18221
    mount_component Component.js:44
    m main.js:18518
    mount_component Component.js:44
    m main.js:26677
    mount_component Component.js:44
    m main.js:39121
    m main.js:38987
    m main.js:38913
    m main.js:39184
    m main.js:38745
    m main.js:39634
    mount_component Component.js:44
    init Component.js:162
    ActorInventoryTab main.js:39751
    4f TabContent.svelte:34
    run utils.js:41
    mount_component Component.js:47
    flush scheduler.js:99
    init Component.js:164
    CharacterAttributesTab main.js:35426
    4f TabContent.svelte:34
    run utils.js:41
equipment.mjs:190:22

and

Error: An error occurred while rendering ItemSheet5e 33. item.system.properties.has is not a function
[Detected 2 packages: system:dnd5e, tidy5e-sheet]
    onError foundry.js:630
    call_wrapped libWrapper-wrapper.js:507
    <anonymous> listeners.js:138
    onError#0 libWrapper-wrapper.js:187
    render foundry.js:5771
    promise callback*render foundry.js:5769
    func2 ItemEditControl.svelte:13
    dispose ItemControl.svelte:25
    listen dom.js:361
    m main.js:22376
    mount_component Component.js:44
    m main.js:22596
    mount_component Component.js:44
    m main.js:24468
    m main.js:24556
    m main.js:24626
    mount_component Component.js:44
    m main.js:26074
    m main.js:21181
    mount_component Component.js:44
    m main.js:26018
    m main.js:26211
    m main.js:20027
    mount_component Component.js:44
    m main.js:26425
    m main.js:26578
    m main.js:18420
    m main.js:18221
    mount_component Component.js:44
    m main.js:18518
    mount_component Component.js:44
    m main.js:26677
    mount_component Component.js:44
    m main.js:39121
    m main.js:38987
    m main.js:38913
    m main.js:39184
    m main.js:38745
Caused by: TypeError: item.system.properties.has is not a function
[Detected 2 packages: system:dnd5e, tidy5e-sheet]
    properties item-sheet.mjs:160
    reduce foundry-esm.js:4270
    getData item-sheet.mjs:156
    _render foundry.js:5814
    _render foundry.js:6548
    _render foundry.js:7134
    _render item-sheet.mjs:84
    render foundry.js:5769
    func2 ItemEditControl.svelte:13
    dispose ItemControl.svelte:25
    listen dom.js:361
    m main.js:22376
    mount_component Component.js:44
    m main.js:22596
    mount_component Component.js:44
    m main.js:24468
    m main.js:24556
    m main.js:24626
    mount_component Component.js:44
    m main.js:26074
    m main.js:21181
    mount_component Component.js:44
    m main.js:26018
    m main.js:26211
    m main.js:20027
    mount_component Component.js:44
    m main.js:26425
    m main.js:26578
    m main.js:18420
    m main.js:18221
    mount_component Component.js:44
    m main.js:18518
    mount_component Component.js:44
    m main.js:26677
    mount_component Component.js:44
    m main.js:39121
    m main.js:38987
    m main.js:38913
    m main.js:39184
    m main.js:38745
foundry.js:631:30

After that everything goes wrong in the Inventory tab on that sheet - a reload of page is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant