summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2021-11-13 11:38:37 +0800
committerLASER-Yi <[email protected]>2021-11-13 11:38:37 +0800
commitcbd6c050c9e6604a8215e8e581f25a5350581730 (patch)
tree3c5cd18d7dd19138a0dc4ddf90d3964443c8df68
parent6f17100ca4b0ea8be445dad81de775cb56840c28 (diff)
downloadbazarr-cbd6c050c9e6604a8215e8e581f25a5350581730.tar.gz
bazarr-cbd6c050c9e6604a8215e8e581f25a5350581730.zip
Fix for #1592v1.0.1-beta.13
-rw-r--r--frontend/src/Settings/Providers/components.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/src/Settings/Providers/components.tsx b/frontend/src/Settings/Providers/components.tsx
index c30742504..9e005d123 100644
--- a/frontend/src/Settings/Providers/components.tsx
+++ b/frontend/src/Settings/Providers/components.tsx
@@ -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);