Skip to content

Commit 4eb59e2

Browse files
alert shows twice if no charts exist
1 parent 16cb76c commit 4eb59e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/library.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150

151151
// if vaction=addnew is found as a GET request parameter, show the modal.
152152
if(location.href.indexOf('vaction=addnew') !== -1){
153-
$('.add-new-chart').trigger('click');
153+
$('.add-new-chart').first().trigger('click');
154154
}
155155

156156
$(window).resize(function () {

0 commit comments

Comments
 (0)