mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 02:52:12 +00:00
get rid of synthetic frontend categories
This commit is contained in:
1 parent
fac9dbdf16
commit
dbd5d9ebfc
1 file changed
+7
-6
@@ -57,7 +57,6 @@ import {
|
||||
} from "@storyteller/components/src/api/category/GetComputedTtsCategoryAssignments";
|
||||
import {
|
||||
DynamicallyCategorizeModels,
|
||||
GenerateSyntheticCategories,
|
||||
} from "../../../../model/categories/SyntheticCategory";
|
||||
|
||||
export interface EnqueueJobResponsePayload {
|
||||
@@ -173,11 +172,13 @@ function TtsModelListPage(props: Props) {
|
||||
}
|
||||
const categoryList = await ListTtsCategories();
|
||||
if (ListTtsCategoriesIsOk(categoryList)) {
|
||||
const serverCategories: TtsCategoryType[] = categoryList.categories;
|
||||
const dynamicCategories: TtsCategoryType[] =
|
||||
GenerateSyntheticCategories();
|
||||
const allCategories = serverCategories.concat(dynamicCategories);
|
||||
setAllTtsCategories(allCategories);
|
||||
// NB(bt, 2023-01-18): We no longer generate categories on the frontend.
|
||||
//const serverCategories: TtsCategoryType[] = categoryList.categories;
|
||||
//const dynamicCategories: TtsCategoryType[] =
|
||||
// GenerateSyntheticCategories();
|
||||
//const allCategories = serverCategories.concat(dynamicCategories);
|
||||
//setAllTtsCategories(allCategories);
|
||||
setAllTtsCategories(categoryList.categories);
|
||||
} else if (ListTtsCategoriesIsError(categoryList)) {
|
||||
// TODO: Retry on decay function
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user