Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Nov 20, 2024
1 parent c060113 commit 77b4b5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/UploadModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const Upload = props => {
{getTranslation("Uploaded at")}
{": "}
{ uploaded_at
? new Date(uploaded_at).toLocaleString()
? new Date(uploaded_at * 1000).toLocaleString()
: "<never>"
}
{ user.id == 1 && (
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Perspective/PerspectivePath.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const queryAvailablePerspectives = gql`
`;

const uploadPerspective = gql`
mutation uploadPerspective($id: LingvodocID!, $force: Boolean, $debugFlag: Boolean) {
tsakorpus(perspective_id: $id, force: $force, debug_flag: $debugFlag) {
mutation uploadPerspective($id: LingvodocID!, $debugFlag: Boolean) {
tsakorpus(perspective_id: $id, force: true, debug_flag: $debugFlag) {
triumph
}
}
Expand Down Expand Up @@ -83,7 +83,7 @@ class PerspectivePath extends React.Component {
this.setState({ uploading: true });

uploadPerspective({
variables: { id, force: true }
variables: { id }
}).then(
({ data }) => {
this.setState({ uploading: false });
Expand Down

0 comments on commit 77b4b5d

Please sign in to comment.