mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
fix a few issues
This commit is contained in:
1 parent
99c5b37d93
commit
dee108cc2d
4 files changed
+5
-6
No files matched your search
+1
-1
@@ -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,
|
||||
|
||||
@@ -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 (
|
||||
<div>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 (
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user