mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-13 13:15:08 +01:00
Fix wrong backendurl being used for meta data fetching
This commit is contained in:
parent
378a1696b3
commit
41f83f4bef
@ -25,7 +25,7 @@ export function TrustBackendPart(props: TrustBackendPartProps) {
|
|||||||
const backendUrl = useBackendUrl();
|
const backendUrl = useBackendUrl();
|
||||||
const hostname = useMemo(() => new URL(backendUrl).hostname, [backendUrl]);
|
const hostname = useMemo(() => new URL(backendUrl).hostname, [backendUrl]);
|
||||||
const result = useAsync(() => {
|
const result = useAsync(() => {
|
||||||
return getBackendMeta(conf().BACKEND_URL);
|
return getBackendMeta(backendUrl);
|
||||||
}, [backendUrl]);
|
}, [backendUrl]);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user