From 7003ef7f92f3a8fed059dab2b37c0e203c000dba Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Fri, 13 May 2022 13:22:56 +1000
Subject: Fix info-modal not display image for composite-nodes

---
 src/components/TileInfoModal.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/TileInfoModal.vue')

diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue
index 6cb0f18..625f02f 100644
--- a/src/components/TileInfoModal.vue
+++ b/src/components/TileInfoModal.vue
@@ -10,10 +10,10 @@ import {capitalizeWords} from '../util';
 export default defineComponent({
 	data(){
 		return {
+			tolNode: null as null | TolNode,
 			desc: null as null | string,
 			fromRedirect: false,
 			imgInfo: null as null | {eolId: string, sourceUrl: string, license: string, copyrightOwner: string},
-			tolNode: null as null | TolNode,
 		};
 	},
 	props: {
@@ -59,10 +59,10 @@ export default defineComponent({
 			.then(response => response.json())
 			.then(obj => {
 				if (obj != null){
+					this.tolNode = obj.nodeObj;
 					if (obj.desc != null){
 						this.desc = obj.desc.text;
 						this.fromRedirect = obj.desc.fromRedirect;
-						this.tolNode = obj.nodeObj;
 					}
 					this.imgInfo = obj.imgInfo;
 				}
-- 
cgit v1.2.3

