From d4f211f375773b52b169eecccd63e17a99d5d851 Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Tue, 23 Aug 2022 22:25:55 +0800 Subject: [PATCH] Fix #1917, bring back sceneName in manual search modal --- frontend/src/components/modals/ManualSearchModal.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/modals/ManualSearchModal.tsx b/frontend/src/components/modals/ManualSearchModal.tsx index 5c3d96066..2e2a7ffb0 100644 --- a/frontend/src/components/modals/ManualSearchModal.tsx +++ b/frontend/src/components/modals/ManualSearchModal.tsx @@ -17,6 +17,7 @@ import { Anchor, Badge, Button, + Code, Collapse, Divider, Group, @@ -26,6 +27,7 @@ import { Text, } from "@mantine/core"; import { useHover } from "@mantine/hooks"; +import { isString } from "lodash"; import { FunctionComponent, useCallback, useMemo, useState } from "react"; import { UseQueryResult } from "react-query"; import { Column } from "react-table"; @@ -186,6 +188,9 @@ function ManualSearchView(props: Props) { [download, item] ); + const bSceneNameAvailable = + isString(item.sceneName) && item.sceneName.length !== 0; + return ( (props: Props) { color="gray" icon={} > - {item?.path} + {item?.path} + +