mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 08:13:14 +00:00
Fix for #1592
This commit is contained in:
parent
6f17100ca4
commit
cbd6c050c9
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue