This commit is contained in:
Timothy Jaeryang Baek
2026-04-12 11:15:38 -05:00
parent 71a39dbac1
commit 36a81ad43b
@@ -82,23 +82,27 @@
loading = true;
if (validateCommandString(command)) {
await onSubmit({
id: prompt?.id,
name,
command,
content,
tags: tags.map((tag) => tag.name),
access_grants: accessGrants,
commit_message: commitMessage || undefined,
is_production: isProduction
});
showEditModal = false;
commitMessage = '';
isProduction = true;
await loadHistory(true); // Reset and reload
// Select the newest version after saving
if (history.length > 0) {
selectedHistoryEntry = history[0];
try {
await onSubmit({
id: prompt?.id,
name,
command,
content,
tags: tags.map((tag) => tag.name),
access_grants: accessGrants,
commit_message: commitMessage || undefined,
is_production: isProduction
});
showEditModal = false;
commitMessage = '';
isProduction = true;
await loadHistory(true); // Reset and reload
// Select the newest version after saving
if (history.length > 0) {
selectedHistoryEntry = history[0];
}
} catch (error) {
toast.error(`${error}`);
}
} else {
toast.error(