Fix Image template creations not automatically executing the selected prompt (#752)

This commit is contained in:
arijiiiitttt🍉 2026-05-09 06:00:48 +05:30 committed by GitHub
parent 84e1bb3b1a
commit 5300585845
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -493,11 +493,15 @@ export function App() {
// to "None" for every kind now, and the user expects that to land
// as a no-design-system project rather than silently inheriting the
// workspace default.
const derivedPendingPrompt =
input.pendingPrompt ??
(input.metadata?.promptTemplate?.prompt?.trim() || undefined);
const result = await createProject({
name: input.name,
skillId: input.skillId,
designSystemId: input.designSystemId,
pendingPrompt: input.pendingPrompt,
pendingPrompt: derivedPendingPrompt,
metadata: input.metadata,
});
if (!result) return;