OpenBuildings / jam-tart

Jam Admin Builder
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Fix JS error in console - check if href attribute is present #32

Closed bozhidargyurov closed 4 years ago

bozhidargyurov commented 4 years ago

Currently, if you don't provide a href attribute for the modal, it will cause JS error in the browser console.

general.js:97 Uncaught TypeError: Cannot read property 'indexOf' of undefined at HTMLButtonElement.<anonymous> (general.js:97)

The solution is to check if the attribute is present.

hkdobrev commented 4 years ago

@bozhidargyurov could you please add another reviewer instead? Thanks!