fix visibility bug

This commit is contained in:
Brandon Thomas committed 2021-08-17 03:04:16 -04:00
1 parent 2b4db1d955
commit b4d1812d78
2 files changed
+4 -3

No files matched your search

@@ -80,7 +80,8 @@ function TtsResultEditFc(props: Props) {
return;
}
setTtsInferenceResult(modelsResponse.result)
setTtsInferenceResult(modelsResponse.result);
setVisibility(modelsResponse?.result?.creator_set_visibility || DEFAULT_VISIBILITY);
})
.catch(e => {
});
@@ -142,7 +143,7 @@ function TtsResultEditFc(props: Props) {
return (
<div className="content">
<h1 className="title is-1"> Edit Result </h1>
<h1 className="title is-1"> Edit Result Visibility </h1>
<p>
<Link to={resultLink}>&lt; Back to result </Link>
@@ -195,7 +195,7 @@ function TtsResultViewFc(props: Props) {
<Link
className="button is-info is-large is-fullwidth"
to={FrontendUrlConfig.ttsResultEditPage(token)}
>Edit Result</Link>
>Edit Result Visibility</Link>
</>
);
}