Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Ribiere committed Mar 1, 2024
1 parent 79e0b06 commit 5c5d883
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/classes/data/OtherData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export enum OtherDataTypes {
export async function getOtherData (): Promise<DataState["otherData"]> {
try {
const dataUrl = `https://sheets.googleapis.com/v4/spreadsheets/1opF61Qq2DgrJIP-kQD5-KHzC4xZkp2u_zqigTGk3V0I/values/Other_data?key=${process.env.VUE_APP_GOOGLE_API_KEY}`
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const sheet: { values: any[] } = await (await fetch(dataUrl)).json()
sheet.values.shift()
const dataset:DataState["otherData"] = {
Expand Down Expand Up @@ -64,7 +65,7 @@ export async function getOtherData (): Promise<DataState["otherData"]> {
if (data.properties?.type === OtherDataTypes.DEATH) dataset.deaths.features.push(data)
if (data.properties?.type === OtherDataTypes.SHIPWRECK) dataset.shipwrecks.features.push(data)
} catch (error) {
console.log(x)
// eslint-disable-next-line no-console
console.log("error on other data for line " + i)
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/PopUp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<script lang="ts" setup>
import { store } from "@/main"
import { computed, watch } from "vue"
import { computed } from "vue"
import OperationDescription from "./popUpContent/OperationDescription.vue"
import IncidentDescription from "./popUpContent/IncidentDescription.vue"
import DeathDescription from "./popUpContent/DeathDescription.vue"
Expand Down

0 comments on commit 5c5d883

Please sign in to comment.