mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
Fix Image template creations not automatically executing the selected prompt (#752)
This commit is contained in:
parent
84e1bb3b1a
commit
5300585845
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue