From 3a98bc179da55a09eae67c56e86444478930289f Mon Sep 17 00:00:00 2001 From: Vivek Kumar <35863227+techievivek@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:08:02 +0530 Subject: [PATCH] Merge pull request #36842 from tienifr/fix/36834 Fix: App crashes when open default workspace avatar (cherry picked from commit 31617474a7e09fe9873f7442278caa696f2c73e5) --- src/components/Attachments/AttachmentView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Attachments/AttachmentView/index.js b/src/components/Attachments/AttachmentView/index.js index d02957aa8137..6da7be841537 100755 --- a/src/components/Attachments/AttachmentView/index.js +++ b/src/components/Attachments/AttachmentView/index.js @@ -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) {