mirror of
https://github.com/sct/overseerr.git
synced 2025-12-30 01:32:38 +01:00
fix: clicking outside modal closes modal again (#2984)
This commit is contained in:
@@ -359,12 +359,12 @@ const TvRequestModal = ({
|
||||
|
||||
const isOwner = editRequest && editRequest.requestedBy.id === user?.id;
|
||||
|
||||
return !data?.externalIds.tvdbId && searchModal.show ? (
|
||||
return data && !data.externalIds.tvdbId && searchModal.show ? (
|
||||
<SearchByNameModal
|
||||
tvdbId={tvdbId}
|
||||
setTvdbId={setTvdbId}
|
||||
closeModal={() => setSearchModal({ show: false })}
|
||||
loading={!data && !error}
|
||||
loading={!error}
|
||||
onCancel={onCancel}
|
||||
modalTitle={intl.formatMessage(
|
||||
is4k ? messages.request4ktitle : messages.requesttitle,
|
||||
|
||||
Reference in New Issue
Block a user