Skip to content

Commit

Permalink
remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Feb 26, 2024
1 parent adfae33 commit f7ed37e
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 @@ -160,7 +160,7 @@ function AttachmentView({
const encryptedSourceUrl = isAuthTokenRequired ? addEncryptedAuthTokenToURL(source) : source;

const onPDFLoadComplete = (path) => {
if (isUsedInCarousel && reportActionID && path) {
if (reportActionID && path) {
CachedPDFPaths.add(reportActionID, path);
}
if (!loadComplete) {
Expand Down

0 comments on commit f7ed37e

Please sign in to comment.