1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-23 08:13:14 +00:00
This commit is contained in:
LASER-Yi 2021-11-13 11:38:37 +08:00
parent 6f17100ca4
commit cbd6c050c9
No known key found for this signature in database
GPG key ID: F5CDE034FD72708F

View file

@ -2,6 +2,7 @@ import { capitalize, isArray, isBoolean } from "lodash";
import React, {
FunctionComponent,
useCallback,
useEffect,
useMemo,
useState,
} from "react";
@ -81,6 +82,10 @@ export const ProviderModal: FunctionComponent = () => {
const [staged, setChange] = useState<LooseObject>({});
useEffect(() => {
setInfo(payload);
}, [payload]);
const [info, setInfo] = useState<Nullable<ProviderInfo>>(payload);
useOnModalShow<ProviderInfo>((p) => setInfo(p), ModalKey);