From 429bd668360831ecafbb9a3a6bf4a73b53c0b2a5 Mon Sep 17 00:00:00 2001 From: mbolli Date: Wed, 13 Mar 2024 11:49:09 +0100 Subject: [PATCH] JS: fix reload loop when setting `frontend.defaults.view` is not set (fixes #102) --- frontend/js/nfsen-ng.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/js/nfsen-ng.js b/frontend/js/nfsen-ng.js index b3f6bf4..ae3717d 100644 --- a/frontend/js/nfsen-ng.js +++ b/frontend/js/nfsen-ng.js @@ -421,8 +421,6 @@ $(document).ready(function() { // load default view if (typeof config.frontend.defaults !== 'undefined') { $('header li a[data-view="' + config.frontend.defaults.view + '"]').trigger('click'); - } else { - $('header li a').eq(0).trigger('click'); } enable_graph = true;