mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 09:48:44 +00:00
fix a few bugs with model dropdown
This commit is contained in:
1 parent
09a43085b3
commit
77c33d4e5d
1 file changed
+1
-2
@@ -1,6 +1,5 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { TtsCategory } from '../../../api/category/ListTtsCategories';
|
||||
import { TtsModel } from '../../../api/tts/GetTtsModel';
|
||||
import { TtsModelListItem } from '../../../api/tts/ListTtsModels';
|
||||
|
||||
interface Props {
|
||||
@@ -70,7 +69,7 @@ export function MultiDropdownSearch(props: Props) {
|
||||
ttsModel.category_tokens.forEach(categoryToken => {
|
||||
let ancestors = categoryTokenToAllAncestorTokens.get(categoryToken);
|
||||
if (ancestors === undefined) {
|
||||
ancestors = findAllAncestorTokens(categoryToken, allCategoriesByTokenMap);
|
||||
ancestors = findAllAncestorTokens(categoryToken, categoriesByTokenMap);
|
||||
categoryTokenToAllAncestorTokens.set(categoryToken, ancestors);
|
||||
}
|
||||
ancestors.forEach(categoryToken => {
|
||||
|
||||
Reference in new issue
Block a user