diff options
author | LASER-Yi <[email protected]> | 2021-11-13 11:38:37 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2021-11-13 11:38:37 +0800 |
commit | cbd6c050c9e6604a8215e8e581f25a5350581730 (patch) | |
tree | 3c5cd18d7dd19138a0dc4ddf90d3964443c8df68 | |
parent | 6f17100ca4b0ea8be445dad81de775cb56840c28 (diff) | |
download | bazarr-cbd6c050c9e6604a8215e8e581f25a5350581730.tar.gz bazarr-cbd6c050c9e6604a8215e8e581f25a5350581730.zip |
Fix for #1592v1.0.1-beta.13
-rw-r--r-- | frontend/src/Settings/Providers/components.tsx | 5 |
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); |