mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
fix premature source close
This commit is contained in:
@@ -25,6 +25,13 @@ const CardSource = ({ source, isLoading, onClickHandler }) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof source !== 'object') {
|
||||
return (
|
||||
<div className="card-source">
|
||||
<div>Error: this source was not found</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<div className="card-source">
|
||||
{isLoading
|
||||
|
||||
Reference in New Issue
Block a user