Skip to content

Commit

Permalink
Fixed TS
Browse files Browse the repository at this point in the history
  • Loading branch information
TessavWalstijn committed Nov 4, 2023
1 parent cff8659 commit 140d1bc
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/components/DataEditor/DataEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ function saveAnnotations() {
manifestStore.manifest.items[0].annotations[0] &&
manifestStore.manifest.items[0].annotations[0].items
) {
let value = ''
manifestStore.getTerms[index].forEach((item, index) => {
manifestStore.getTerms[index].forEach((item: any) => {
if (item.selected) {
value += item.prefLabel[0] + '|' + item.uri + ','
}
Expand Down Expand Up @@ -126,13 +125,6 @@ function saveAnnotations() {
'Content-Type': 'application/json',
},
})
.then(function (response) {
return response.json()
})
.then(function (data) {
console.log(data)
newManifestUrl.value = data.url
})
.then(function (response) {
return response.json()
})
Expand Down Expand Up @@ -221,7 +213,7 @@ async function fetchTerms(name: string) {
<input
type="checkbox"
@click="
function () {
() => {
term.selected = true
}
" />
Expand Down

0 comments on commit 140d1bc

Please sign in to comment.