Skip to content

Commit

Permalink
chore(type): fix type for build
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou committed Sep 8, 2021
1 parent 4d38b01 commit 855959a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/server/history/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const getters: GetterTree<ServerHistoryState, any> = {
getPrintStatusByFilename: (state) => (filename: string, modified: number) => {
if (state.jobs.length) {
const job = state.jobs.find((job) => {
return job.filename === filename && parseInt(job.metadata?.modified*1000) === modified
return job.filename === filename && Math.round(job.metadata?.modified*1000) === modified
})

return job?.status ?? ""
Expand Down

0 comments on commit 855959a

Please sign in to comment.