Solved Cache album.id throws exception
-
I was debugging another issue and noticed errors in the dev console with MMM-GoogleAssistant when it was setting the album cover background image. The
album
it was using to access a cached album id was undefined. So accessing theid
property of this undefined object threw an exception.Is this something wrong with my cache?
I modified
components/extented.js
at line 714 to check if thealbum
was undefined:if (typeof album != 'undefined') { albumCover.style.backgroundImage = `url(modules/MMM-GoogleAssistant/tmp/cache/${album.id})` }
This got rid of the dev console errors but why is it trying to access an undefined album object?
-
Good question…
I don’t catch any error about album because it’s not logical to don’t have any picture…But … it can
thanks for this report !
-
hi, It will be patched with GA v3.3.X
-
bugsounet