From c5101c0e34ba8db5aeb009f3a17c82fdaeb869ae Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Tue, 24 May 2022 13:12:36 +1000 Subject: Don't show blank image in info-modal for for compound-image with only 1 sub-image --- src/tol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tol.ts') 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; -- cgit v1.2.3