pull/1611/head v1.0.1-beta.13
LASER-Yi 3 years ago
parent 6f17100ca4
commit cbd6c050c9
No known key found for this signature in database
GPG Key ID: F5CDE034FD72708F

@ -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);

Loading…
Cancel
Save