From dee108cc2d81ea93b20636abe8ddcfaf4e516427 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sun, 13 Jun 2021 02:17:03 -0400 Subject: [PATCH] fix a few issues --- vocodes/src/App.tsx | 2 +- vocodes/src/v2/profile/Profile_TtsInferenceResultListFc.tsx | 4 ++-- vocodes/src/v2/profile/Profile_TtsModelListFc.tsx | 1 - vocodes/src/v2/profile/Profile_W2lInferenceResultListFc.tsx | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/vocodes/src/App.tsx b/vocodes/src/App.tsx index e0d8543d98..ed5fae8b3b 100644 --- a/vocodes/src/App.tsx +++ b/vocodes/src/App.tsx @@ -13,7 +13,7 @@ import { TtsInferenceJob, TtsInferenceJobStateResponsePayload } from './jobs/Tts import { W2lInferenceJob, W2lInferenceJobStateResponsePayload } from './jobs/W2lInferenceJobs'; import { TtsModelUploadJob, TtsModelUploadJobStateResponsePayload } from './jobs/TtsModelUploadJobs'; import { W2lTemplateUploadJob, W2lTemplateUploadJobStateResponsePayload } from './jobs/W2lTemplateUploadJobs'; -import { JobState, jobStateCanChange } from './jobs/JobStates'; +import { jobStateCanChange } from './jobs/JobStates'; enum MigrationMode { NEW_VOCODES, diff --git a/vocodes/src/v2/profile/Profile_TtsInferenceResultListFc.tsx b/vocodes/src/v2/profile/Profile_TtsInferenceResultListFc.tsx index 4af033d78a..84c1cc7290 100644 --- a/vocodes/src/v2/profile/Profile_TtsInferenceResultListFc.tsx +++ b/vocodes/src/v2/profile/Profile_TtsInferenceResultListFc.tsx @@ -112,8 +112,8 @@ function ProfileTtsInferenceResultsListFc(props: Props) { // Disable if there is no "next" or "previous" cursor. // However, let the buttosn show up if there are no results (empty payload) // to get unstuck. Come up with a better fix for this. - let prevDisabled = !previousCursor && rows.length != 0; - let nextDisabled = !nextCursor && rows.length != 0; + let prevDisabled = !previousCursor && rows.length !== 0; + let nextDisabled = !nextCursor && rows.length !== 0; return (
diff --git a/vocodes/src/v2/profile/Profile_TtsModelListFc.tsx b/vocodes/src/v2/profile/Profile_TtsModelListFc.tsx index 61f1ccea16..25814871b2 100644 --- a/vocodes/src/v2/profile/Profile_TtsModelListFc.tsx +++ b/vocodes/src/v2/profile/Profile_TtsModelListFc.tsx @@ -47,7 +47,6 @@ function ProfileTtsModelListFc(props: Props) { setTtsModels(modelsResponse.models) }) .catch(e => { - //this.props.onSpeakErrorCallback(); }); }, [props.username]); // NB: Empty array dependency sets to run ONLY on mount diff --git a/vocodes/src/v2/profile/Profile_W2lInferenceResultListFc.tsx b/vocodes/src/v2/profile/Profile_W2lInferenceResultListFc.tsx index ba2ff88bbd..5ee691304f 100644 --- a/vocodes/src/v2/profile/Profile_W2lInferenceResultListFc.tsx +++ b/vocodes/src/v2/profile/Profile_W2lInferenceResultListFc.tsx @@ -112,8 +112,8 @@ function ProfileW2lInferenceResultsListFc(props: Props) { // Disable if there is no "next" or "previous" cursor. // However, let the buttosn show up if there are no results (empty payload) // to get unstuck. Come up with a better fix for this. - let prevDisabled = !previousCursor && rows.length != 0; - let nextDisabled = !nextCursor && rows.length != 0; + let prevDisabled = !previousCursor && rows.length !== 0; + let nextDisabled = !nextCursor && rows.length !== 0; return (