Skip to content

Commit

Permalink
Merge pull request #36842 from tienifr/fix/36834
Browse files Browse the repository at this point in the history
Fix: App crashes when open default workspace avatar
  • Loading branch information
techievivek authored Feb 20, 2024
2 parents 0c4cd6c + 23cbd01 commit 3161747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Attachments/AttachmentView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function AttachmentView({
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const [loadComplete, setLoadComplete] = useState(false);
const isVideo = Str.isVideo(source);
const isVideo = typeof source === 'string' && Str.isVideo(source);

useEffect(() => {
if (!isFocused) {
Expand Down

0 comments on commit 3161747

Please sign in to comment.