Skip to content

Commit 8783507

Browse files
authored
modal fix (#332)
Signed-off-by: Janos SUTO <[email protected]>
1 parent e386b7c commit 8783507

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webui/assets/js/piler.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,10 @@ let Piler =
11841184
modal: function(id, action='') {
11851185
try {
11861186
let modalId = document.getElementById(id)
1187+
if (!modalId) {
1188+
Piler.log("[modal] element not found:", id)
1189+
return
1190+
}
11871191
const modal = bootstrap.Modal.getOrCreateInstance(modalId)
11881192
if(action == 'show') {
11891193
modal.show()

0 commit comments

Comments
 (0)