PromucFlow_constructor/app/client/src/pages/common
Hetu Nandu 91f49de8e1
fix: Conditionally call for profile photo api (#20306)
## Description

We used to blindly call for profile photos of all users in the
applications page. This lead to 404 errors getting printed in the
console when the photo does not exist. After fix: #20132 we were able to
conditionally decide if we wanted to call for a profile photo or not

> Removes the tons of 404 error messages from the console when a user
does not have a profile photo

Fixes #9322

## Type of change

- Bug fix (non-breaking change which fixes an issue)


## How Has This Been Tested?

- Manual

### Test Plan
> Add Testsmith test cases links that relate to this PR

### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)


## Checklist:
### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-02-15 13:09:50 +05:30
..
CanvasArenas feat: Auto height instant update (#19082) 2023-02-03 11:17:40 +05:30
CustomizedDropdown chore: update Styled components to latest version and related cleanup (#19284) 2023-01-13 16:35:59 +05:30
datasourceAuth feat: Renamed design system package (#19854) 2023-01-23 09:20:47 +05:30
ErrorPages chore: [code split] License issue landing page for non admin user (#19917) 2023-01-23 11:29:15 +05:30
AppHeader.tsx feat: Branding (#18717) 2022-12-09 20:13:47 +05:30
ArtBoard.tsx fix: layout control not working (#7502) 2021-09-17 11:07:09 +05:30
ErrorPage.tsx feat: Branding (#18717) 2022-12-09 20:13:47 +05:30
ErrorPageHeader.tsx feat: Branding (#18717) 2022-12-09 20:13:47 +05:30
Loader.tsx Development: Add eslint rules for code consistency (#4083) 2021-04-28 15:58:39 +05:30
LoginHeader.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
MobileSidebar.tsx feat: Renamed design system package (#19854) 2023-01-23 09:20:47 +05:30
NotFound.tsx - Auto fix sort ddestructured props rule 2021-05-13 14:05:39 +05:30
PageHeader.tsx feat: Renamed design system package (#19854) 2023-01-23 09:20:47 +05:30
PageLoadingBar.tsx Development: Add eslint rules for code consistency (#4083) 2021-04-28 15:58:39 +05:30
PageSectionDivider.tsx
PageSectionHeader.tsx
PaneCountSwitcher.tsx feat: Multi Pane IDE: Phase 1 (#19261) 2023-01-09 10:54:41 +05:30
PaneWrapper.tsx
ProfileDropdown.tsx feat: Renamed design system package (#19854) 2023-01-23 09:20:47 +05:30
ProfileImage.tsx feat: Renamed design system package (#19854) 2023-01-23 09:20:47 +05:30
SharedUserList.tsx fix: Conditionally call for profile photo api (#20306) 2023-02-15 13:09:50 +05:30
SideNav.tsx feat: Multi Pane IDE: Phase 1 (#19261) 2023-01-09 10:54:41 +05:30
SpinnerLoader.tsx feat: git sync - add error, progress states to connect and merge tabs (#9007) 2021-11-09 15:21:18 +05:30
SubHeader.tsx feat: Renamed design system package (#19854) 2023-01-23 09:20:47 +05:30
SuccessTick.tsx fix: git sync updates (#9623) 2021-12-15 00:30:59 +08:00
ThemeSwitcher.tsx feat: Renamed design system package (#19854) 2023-01-23 09:20:47 +05:30