From f4112ca40be17af06c0980527ebb4ce33abcb47d Mon Sep 17 00:00:00 2001 From: Nhan Phan Date: Wed, 1 Mar 2023 20:03:54 +0700 Subject: [PATCH] fix: local bookmark --- src/modules/template.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/template.go b/src/modules/template.go index 2a2f8a0..0f719ad 100644 --- a/src/modules/template.go +++ b/src/modules/template.go @@ -70,7 +70,9 @@ func loadData() { if len(bookmarkData.UrlLocal) > 0 { url = bookmarkData.UrlLocal } - columnDataPrivate = append(columnDataPrivate, BookmarkData{bookmarkData.Name, url, bookmarkData.UrlLocal, iconPath, true}) + if len(url) > 0 { + columnDataPrivate = append(columnDataPrivate, BookmarkData{bookmarkData.Name, url, bookmarkData.UrlLocal, iconPath, true}) + } //add to public array if !bookmarkData.IsLocal && len(bookmarkData.Url) > 0 {