Skip to content

Commit

Permalink
Merge pull request #1401 from wri/MAPB-228
Browse files Browse the repository at this point in the history
bug: fixed case sensitive issue with image urls in popup; applied lowercase to all image types
  • Loading branch information
davidlstarr authored Jun 19, 2024
2 parents dfe68a1 + 0dd1e21 commit b61ab61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/components/leftPanel/dataPanel/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ export const checkForPopupImage = (value: string | number | null) => {
const splitStr = value?.split('.');
if (splitStr.length <= 1) return false;

const getLastItem = splitStr[splitStr.length - 1];
const getLastItem = splitStr[splitStr.length - 1].toLowerCase();

if (IMAGE_TYPES.includes(getLastItem)) {
return true;
}
Expand Down

0 comments on commit b61ab61

Please sign in to comment.