Fix adding of effects to owned items #73

Closed
opened 2023-06-20 18:18:49 +02:00 by migration-script · 0 comments

Description

Please describe the issue.

Steps to Reproduce

  1. Open character sheet
  2. Go to items tab
  3. Click on edit button next to one item (if no item is in the list, add one first)
  4. In the item sheet that popped up, go to effects tab
  5. Click Add

Expected Behavior

The same as if clicking add in the effects tab of an item sheet of a non-owned item from the item inventory: An effect is successfully to the list of effects of the item.

Actual Behavior

Then the following javascript error is raised and no effect added to the list:

Uncaught (in promise) TypeError: Cannot read property 'effects' of null

Additional Details

Full error message:

Uncaught (in promise) TypeError: Cannot read property 'effects' of null
    at Function._onCreate (home/gesina/projects/javascript/foundryvtt/resources/app/dist/database/odm/embedded.js:1)
    at _onModifyDocument (home/gesina/projects/javascript/foundryvtt/resources/app/dist/database/odm/embedded.js:1)
    at async Socket.handleEvent (home/gesina/projects/javascript/foundryvtt/resources/app/dist/sockets.js:1)
_handleError @ foundry.js:3777
(anonymous) @ foundry.js:3761
n.onack @ index.js:83
n.onpacket @ index.js:83
(anonymous) @ index.js:83
n.emit @ index.js:83
n.ondecoded @ index.js:83
(anonymous) @ index.js:83
n.emit @ index.js:83
a.add @ index.js:83
n.ondata @ index.js:83
(anonymous) @ index.js:83
n.emit @ index.js:83
n.onPacket @ index.js:83
(anonymous) @ index.js:83
n.emit @ index.js:83
n.onPacket @ index.js:83
n.onData @ index.js:83
ws.onmessage @ index.js:83

Possible Solutions

No idea ...

# Description Please describe the issue. # Steps to Reproduce 1. Open character sheet 2. Go to items tab 3. Click on edit button next to one item (if no item is in the list, add one first) 4. In the item sheet that popped up, go to effects tab 5. Click Add # Expected Behavior The same as if clicking add in the effects tab of an item sheet of a non-owned item from the item inventory: An effect is successfully to the list of effects of the item. # Actual Behavior Then the following javascript error is raised and no effect added to the list: ``` Uncaught (in promise) TypeError: Cannot read property 'effects' of null ``` # Additional Details Full error message: ``` Uncaught (in promise) TypeError: Cannot read property 'effects' of null at Function._onCreate (home/gesina/projects/javascript/foundryvtt/resources/app/dist/database/odm/embedded.js:1) at _onModifyDocument (home/gesina/projects/javascript/foundryvtt/resources/app/dist/database/odm/embedded.js:1) at async Socket.handleEvent (home/gesina/projects/javascript/foundryvtt/resources/app/dist/sockets.js:1) _handleError @ foundry.js:3777 (anonymous) @ foundry.js:3761 n.onack @ index.js:83 n.onpacket @ index.js:83 (anonymous) @ index.js:83 n.emit @ index.js:83 n.ondecoded @ index.js:83 (anonymous) @ index.js:83 n.emit @ index.js:83 a.add @ index.js:83 n.ondata @ index.js:83 (anonymous) @ index.js:83 n.emit @ index.js:83 n.onPacket @ index.js:83 (anonymous) @ index.js:83 n.emit @ index.js:83 n.onPacket @ index.js:83 n.onData @ index.js:83 ws.onmessage @ index.js:83 ``` # Possible Solutions No idea ...
migration-script added the
bug
label 2023-06-20 18:18:49 +02:00
saluu was assigned by migration-script 2023-06-20 18:18:49 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: dungeonslayers/ds4#73
No description provided.