fix: textarea resize vertical only, deploy script npm install
This commit is contained in:
@@ -453,13 +453,13 @@ export default function CreateStoryPage() {
|
||||
// Helper function to save characters as global NPCs
|
||||
const saveCharactersAsGlobalNPCs = async () => {
|
||||
const existingNames = savedNPCs.map((npc) => npc.name.toLowerCase());
|
||||
|
||||
|
||||
for (const char of storyCharacters) {
|
||||
// Skip if NPC with this name already exists
|
||||
if (existingNames.includes(char.name.toLowerCase())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// Create global NPC from story character
|
||||
await createNPCCharacter({
|
||||
name: char.name,
|
||||
|
||||
Reference in New Issue
Block a user