Error on updating an aura with companion
mrbuds opened this issue ยท 1 comments
Describe the bug
After clicking the wago update button of an aura that is not in a group i get this error:
1x WeakAurasOptions\WeakAurasOptions-@[email protected]:445: attempt to index local 'data' (a nil value)
[string "@WeakAurasOptions\WeakAurasOptions-@[email protected]"]:445: in function <WeakAurasOptions\WeakAurasOptions.lua:443>
[string "=[C]"]: ?
[string "@AzeriteTooltip\libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua"]:29: in function <...tip\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:25>
[string "@AzeriteTooltip\libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua"]:64: in function `Fire'
[string "@WeakAuras\WeakAuras-@[email protected]"]:1730: in function `Delete'
[string "@WeakAuras\Transmission.lua"]:316: in function <WeakAuras\Transmission.lua:308>
[string "@WeakAuras\Transmission.lua"]:383: in function <WeakAuras\Transmission.lua:325>
[string "@WeakAuras\Transmission.lua"]:433: in function <WeakAuras\Transmission.lua:393>
Display does not change, after a /reload everything seems fixed and updated.
To replicate:
On Retail
- Import a previous version of https://wago.io/UlW9XvFre/
- /reload
- Refresh in Companion App
- /reload
- click update button => select update (not copy)
If i edit OnAboutToDelete
local function OnAboutToDelete(event, uid, id, parentUid, parentId)
print("OnAboutToDelete", event, uid, id, parentUid, parentId)
local data = OptionsPrivate.Private.GetDataByUID(uid)
print("data", data)
if(data.controlledChildren) then
uid is correct, but data is nil