Skip to content

Commit

Permalink
fix(node): fix panic when no subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
1715173329 authored Aug 8, 2024
1 parent 64f284b commit 14a14ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/luci-static/resources/view/homeproxy/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ return view.extend({
/* User nodes end */

/* Subscription nodes start */
for (var suburl of uci.get(data[0], 'subscription', 'subscription_url')) {
for (var suburl of (uci.get(data[0], 'subscription', 'subscription_url') || [])) {
const url = new URL(suburl);
const urlhash = hp.calcStringMD5(suburl.replace(/#.*$/, ''));
const title = url.hash ? decodeURIComponent(url.hash.slice(1)) : url.hostname;
Expand Down

0 comments on commit 14a14ab

Please sign in to comment.