Skip to content

Commit

Permalink
fix ebrains publish
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Apr 1, 2024
1 parent fc1560d commit 1485945
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/views/shareExport/shareExport.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as outputs from "src/state/outputs"
import * as appState from "src/state/app"
import * as generalActions from "src/state/actions"
import { DestroyDirective } from "src/util/destroy.directive";
import { ExportJson } from "src/state/outputs/consts";

const flattenMat = (arr: number[][]) => arr.reduce((acc, curr) => acc.concat(curr), [])

Expand Down Expand Up @@ -300,13 +301,12 @@ export class ShareExportComponent {
sending: true
})
try{
const { coordinateSpace, ...rest } = JSON.parse(content) as ExportJson
const res = await fetch(`ebrains`, {
method: "POST",
body: JSON.stringify({
body: {
...JSON.parse(content),
description
}
...rest,
description
}),
headers: {
"content-type": "applicaton/json"
Expand Down

0 comments on commit 1485945

Please sign in to comment.