fix: prevent saving prompt with same name as existing prompt

This commit is contained in:
Mason Hu
2024-11-13 15:28:16 +02:00
parent 2fe3cb2b22
commit f6e9f9011d
2 changed files with 38 additions and 4 deletions

View File

@@ -179,6 +179,7 @@ export default function Prompts({
</div>
</div>
<PromptsModal
existingPrompts={prompts}
type={modalType}
modalState={modalState}
setModalState={setModalState}