fix issue with loading variants
This commit is contained in:
parent
24a123db36
commit
96658819f3
@ -72,6 +72,9 @@ export const useProjectStore = create<ProjectStore>((set) => ({
|
||||
appendToVariant: (newTokens: string, index: number) =>
|
||||
set((state) => {
|
||||
const newVariants = [...state.variants];
|
||||
while (newVariants.length <= index) {
|
||||
newVariants.push("");
|
||||
}
|
||||
newVariants[index] += newTokens;
|
||||
return { variants: newVariants };
|
||||
}),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user