Skip to content

Commit

Permalink
fix: Improved method name
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed May 15, 2024
1 parent fd2bb9e commit c6154c6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const getSourceBounds = async (map, sourceId) => {
);
};

const parseJson = content => {
const parsePopupJsonFields = content => {
try {
return JSON.parse(content);
} catch (error) {
Expand All @@ -84,7 +84,7 @@ const parseJson = content => {

const PopupContent = props => {
const { data } = props;
const fields = parseJson(data.fields);
const fields = parsePopupJsonFields(data.fields);
const title = data.title;

return (
Expand Down

0 comments on commit c6154c6

Please sign in to comment.