Skip to content

Commit

Permalink
Fix: paperId and workspaceId in function
Browse files Browse the repository at this point in the history
  • Loading branch information
coddingyun committed Oct 10, 2023
1 parent 0e53062 commit 0e73d05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/common/annotation-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ else if (process.env.NODE_ENV === 'production'){
api = `${process.env.VITE_REACT_APP_AWS_SERVER}`
}

const paperId = sessionStorage.getItem('paperId')
const workspaceId = sessionStorage.getItem('workspaceId')
class AnnotationManager {
constructor(options) {
this._filter = {
Expand Down Expand Up @@ -134,6 +132,9 @@ class AnnotationManager {

delete payload.type
delete payload.id

const paperId = sessionStorage.getItem('paperId')
const workspaceId = sessionStorage.getItem('workspaceId')

postApi(api, `/api/paper/item?paperid=${paperId}&workspaceId=${workspaceId}`, payload)
.catch(error => {
Expand Down

0 comments on commit 0e73d05

Please sign in to comment.