From eb05486d7e2a3a33702cf0a11a131508267d34ff Mon Sep 17 00:00:00 2001
From: AndiMajore <andi.majore@googlemail.com>
Date: Wed, 8 Feb 2023 13:59:13 +0100
Subject: [PATCH] updated to drugst.one 1.1.4; fixed issue when loading empty
 entries in standalone as nodes

---
 src/app/app.component.ts                                    | 4 ++--
 src/app/pages/standalone/standalone/standalone.component.ts | 2 +-
 src/index.html                                              | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index d6bc968..a1a9014 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -10,8 +10,8 @@ import { ThemeService } from 'src/app/services/theme.service';
     styleUrls: ['./app.component.scss'],
 })
 export class AppComponent {
-    public version = "1.1.12"
-    public cdnVersion = "prod/v1.1.12"
+    public version = "1.1.14"
+    public cdnVersion = "prod/v1.1.14"
     public host = "https://drugst.one"
     public cdn = "https://cdn.drugst.one"
     public backendPath = "https://api.drugst.one/"
diff --git a/src/app/pages/standalone/standalone/standalone.component.ts b/src/app/pages/standalone/standalone/standalone.component.ts
index 9111aca..9069b68 100644
--- a/src/app/pages/standalone/standalone/standalone.component.ts
+++ b/src/app/pages/standalone/standalone/standalone.component.ts
@@ -401,7 +401,7 @@ export class StandaloneComponent implements OnInit {
 
     getNodes(list: string, delim: string): Object[] {
         // @ts-ignore
-        return list.split(delim).map(entry => {
+        return list.split(delim).filter(entry=>entry != null && entry.length > 0).map(entry => {
             let name = entry.trim()
             return {id: name, group: this.group, label: name}
         })
diff --git a/src/index.html b/src/index.html
index e8900e6..19f6213 100644
--- a/src/index.html
+++ b/src/index.html
@@ -51,8 +51,8 @@
     <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js"></script>
     <!-- Latest release (dock1)  -->
 
-    <script type="text/javascript" src="https://cdn.drugst.one/v1.1.12/prod/drugstone.js"></script>
-    <link rel="stylesheet" href="https://cdn.drugst.one/v1.1.12/prod/styles.css">
+    <script type="text/javascript" src="https://cdn.drugst.one/v1.1.14/prod/drugstone.js"></script>
+    <link rel="stylesheet" href="https://cdn.drugst.one/v1.1.14/prod/styles.css">
 
 <!--    <script type="text/javascript" src="https://cdn.drugst.one/nightly/drugstone.js"></script>-->
 <!--    <link rel="stylesheet" href="https://cdn.drugst.one/nightly/styles.css">-->
-- 
GitLab