Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion StarSeeker/frontend/src/components/DisplayPoints.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function fetchDetails(
);

let html = '';
res.data.forEach((d) => {
res.data.forEach((d: any) => {
const escapedDisplayTitle = escapeSpecialCharacters(d.displayTitle);
const escapedValue = escapeSpecialCharacters(d.value);
const isImage = d.dataType === 1;
Expand Down
4 changes: 2 additions & 2 deletions StarSeeker/frontend/src/components/DisplaySurfaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function fetchDetails(
);

let html = '';
res.data.forEach((d) => {
res.data.forEach((d: any) => {
html += `<tr><th>${escapeSpecialCharacters(
d.displayTitle
)}</th><td>${escapeSpecialCharacters(d.value)}</td></tr>`;
Expand All @@ -50,7 +50,7 @@ async function fetchDetails(

const DisplaySurfaces: React.VFC<{ data: any, fiware: any }> = ({ data, fiware }) => {
const map = useMap();
const positions = data.location.value.map((d) => d.split(','));
const positions = data.location.value.map((d: any) => d.split(','));

return (
<Polygon
Expand Down