From b6c1ea8d06e7512d7f119577f09af6eb25851988 Mon Sep 17 00:00:00 2001 From: wahyu Date: Tue, 31 Oct 2023 08:10:36 +0700 Subject: [PATCH] git check hierarchy --- view-mode/function/overlaySCurve.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view-mode/function/overlaySCurve.js b/view-mode/function/overlaySCurve.js index 9b41082..1e19e64 100644 --- a/view-mode/function/overlaySCurve.js +++ b/view-mode/function/overlaySCurve.js @@ -16,10 +16,11 @@ function callback(response) { function messageListener(event) { if (event.data && event.data.action === 'sendUrl') { const parentUrl = event.data.url; + const isHierarchy = event.data.isHierarchy; // Split the remaining path by "/" parts = parentUrl.split("/"); - if (parts[7] && parts[7] == "1") { + if (parts[7] && parts[7] == "1" && isHierarchy) { $.ajax({ headers: { "Content-Type": "application/json",