mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 13:40:55 +00:00
fix
This commit is contained in:
parent
3447f233fa
commit
36e895c135
@ -110,7 +110,8 @@
|
|||||||
return {
|
return {
|
||||||
type: node.type,
|
type: node.type,
|
||||||
key: node.key,
|
key: node.key,
|
||||||
node_ids: node.node_ids.split(',').map((id) => id.trim())
|
node_ids:
|
||||||
|
node.node_ids.trim() === '' ? [] : node.node_ids.split(',').map((id) => id.trim())
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -427,7 +428,7 @@
|
|||||||
<div
|
<div
|
||||||
class=" capitalize line-clamp-1 font-medium px-3 py-1 w-20 text-center rounded-l-lg bg-green-500/10 text-green-700 dark:text-green-200"
|
class=" capitalize line-clamp-1 font-medium px-3 py-1 w-20 text-center rounded-l-lg bg-green-500/10 text-green-700 dark:text-green-200"
|
||||||
>
|
>
|
||||||
{node.type}
|
{node.type}{node.type === 'prompt' ? '*' : ''}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div class="">
|
||||||
@ -456,6 +457,10 @@
|
|||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-2 text-xs text-right text-gray-400 dark:text-gray-500">
|
||||||
|
{$i18n.t('*Prompt node ID(s) are required for image generation')}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{:else if config?.engine === 'openai'}
|
{:else if config?.engine === 'openai'}
|
||||||
|
Loading…
Reference in New Issue
Block a user