From 0c77e6983b666c34ba2cae8f7faa6c1dc0175923 Mon Sep 17 00:00:00 2001 From: deanchen Date: Mon, 28 Mar 2022 14:25:15 +0800 Subject: [PATCH] fix: show message inporperly --- .../CaptureMatching/CaptureMatchingView.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/CaptureMatching/CaptureMatchingView.js b/src/components/CaptureMatching/CaptureMatchingView.js index 53fda086e..b173213b0 100644 --- a/src/components/CaptureMatching/CaptureMatchingView.js +++ b/src/components/CaptureMatching/CaptureMatchingView.js @@ -635,14 +635,17 @@ function CaptureMatchingView(props) { sameTreeHandler={sameTreeHandler} /> )} - {!loading && captureImage && candidateImgData && ( - //captureImage && treesCount === 0 && ( - - - No candidate match found, this capture might be a new tree - - - )} + {!loading && + captureImage && + candidateImgData && + candidateImgData.length === 0 && ( + //captureImage && treesCount === 0 && ( + + + No candidate match found, this capture might be a new tree + + + )} {loading && (