aboutsummaryrefslogtreecommitdiff
path: root/src/tol.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-05-24 13:12:36 +1000
committerTerry Truong <terry06890@gmail.com>2022-05-24 13:12:36 +1000
commitc5101c0e34ba8db5aeb009f3a17c82fdaeb869ae (patch)
treef3bf2bda5b287e223aa85f066e8eaf979c11c66d /src/tol.ts
parent5b3fcc397cf87ef4f484a01e3fc00f4e18b6f6da (diff)
Don't show blank image in info-modal for for compound-image with only 1 sub-image
Diffstat (limited to 'src/tol.ts')
-rw-r--r--src/tol.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tol.ts b/src/tol.ts
index 15f1a94..aa9a9b1 100644
--- a/src/tol.ts
+++ b/src/tol.ts
@@ -11,7 +11,7 @@ export class TolNode {
tips: number;
pSupport: boolean;
commonName: null | string;
- imgName: null | string | [string, string];
+ imgName: null | string | [string, string] | [null, string] | [string, null];
constructor(children: string[] = [], parent = null, tips = 0, pSupport = false){
this.children = children;
this.parent = parent;