Skip to content

Commit 77b4b5d

Browse files
committed
minor
1 parent c060113 commit 77b4b5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/UploadModal/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const Upload = props => {
6666
{getTranslation("Uploaded at")}
6767
{": "}
6868
{ uploaded_at
69-
? new Date(uploaded_at).toLocaleString()
69+
? new Date(uploaded_at * 1000).toLocaleString()
7070
: "<never>"
7171
}
7272
{ user.id == 1 && (

src/pages/Perspective/PerspectivePath.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export const queryAvailablePerspectives = gql`
4949
`;
5050

5151
const uploadPerspective = gql`
52-
mutation uploadPerspective($id: LingvodocID!, $force: Boolean, $debugFlag: Boolean) {
53-
tsakorpus(perspective_id: $id, force: $force, debug_flag: $debugFlag) {
52+
mutation uploadPerspective($id: LingvodocID!, $debugFlag: Boolean) {
53+
tsakorpus(perspective_id: $id, force: true, debug_flag: $debugFlag) {
5454
triumph
5555
}
5656
}
@@ -83,7 +83,7 @@ class PerspectivePath extends React.Component {
8383
this.setState({ uploading: true });
8484

8585
uploadPerspective({
86-
variables: { id, force: true }
86+
variables: { id }
8787
}).then(
8888
({ data }) => {
8989
this.setState({ uploading: false });

0 commit comments

Comments
 (0)