BlitzKraig / fvtt-EasyTable

Super simple CSV to rollable table creator for Foundry VTT
MIT License
15 stars 20 forks source link

JS error when player refreshes the page #3

Closed maxstar closed 3 years ago

maxstar commented 3 years ago
  1. Player refreshes the page
  2. js error occurs: "User username lacks permission to update the World setting EasyTable.tableSettings". Data that has been sent: "{"title":"EasyTable","description":"An easy table. Optional {} denotes weight","data":"val1,val2{2},val3","separator":","}"
  3. At the same time GM's console also gets JS error "Cannot destructure property 'key' of 'result' as it is undefined.", foundry.js line 3105.
BlitzKraig commented 3 years ago

Hi maxstar,

Please try out v1.2.2, I think that should sort your issue. Please let me know if that's resolved.

Thanks for the feedback!

maxstar commented 3 years ago

Hi. Problem has been fixed. However, another one was introduced: image

BlitzKraig commented 3 years ago

Hi maxstar,

I think the hook I switched to is fired too late, so the settings.get can sometimes be called before it is registered 🙄

I've updated the hook in 1.2.3, please give that a try.

maxstar commented 3 years ago

Yes, error is gone. Thanks.