mirror of https://github.com/morpheus65535/bazarr
no log: Remove debug code
This commit is contained in:
parent
875eb013cc
commit
cb1ea4f180
|
@ -55,25 +55,8 @@ export const ManualSearchModal: FunctionComponent<Props & BaseModalProps> = (
|
||||||
) => {
|
) => {
|
||||||
const { onSelect, onDownload, ...modal } = props;
|
const { onSelect, onDownload, ...modal } = props;
|
||||||
|
|
||||||
const [result, setResult] = useState<SearchResultType[]>([
|
const [result, setResult] = useState<SearchResultType[]>([]);
|
||||||
{
|
const [searchState, setSearchState] = useState(SearchState.Ready);
|
||||||
matches: [],
|
|
||||||
dont_matches: [],
|
|
||||||
language: "zh",
|
|
||||||
forced: "True",
|
|
||||||
hearing_impaired: "True",
|
|
||||||
orig_score: 100,
|
|
||||||
provider: "assrt",
|
|
||||||
release_info: [
|
|
||||||
"ladbgklsafbsbfliksbfiasvbgsdbfashfsdgvfvasblgvbsdlfagviugas",
|
|
||||||
"ailuysdbliaubfhysvaugsdhfahjsdfhjasoi;fhsdfb",
|
|
||||||
],
|
|
||||||
score: 99,
|
|
||||||
score_without_hash: 99,
|
|
||||||
subtitle: {},
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
const [searchState, setSearchState] = useState(SearchState.Finished);
|
|
||||||
|
|
||||||
const item = usePayload<SupportType>(modal.modalKey);
|
const item = usePayload<SupportType>(modal.modalKey);
|
||||||
|
|
||||||
|
@ -93,7 +76,7 @@ export const ManualSearchModal: FunctionComponent<Props & BaseModalProps> = (
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (item !== null) {
|
if (item !== null) {
|
||||||
// setSearchState(SearchState.Ready);
|
setSearchState(SearchState.Ready);
|
||||||
}
|
}
|
||||||
}, [item]);
|
}, [item]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue