[CYS] Fix error when repeating the prompt on consecutives runs (#46872)

* Fix error when the repeating the prompt

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Alba Rincón 2024-04-29 10:24:48 +02:00 committed by GitHub
parent 75b7775e1b
commit 79c5359a49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -253,8 +253,8 @@ export const updateStorePatterns = async (
method: 'GET',
} );
if ( ! images.images.length ) {
if ( is_ai_generated ) {
if ( ! images ) {
if ( ! is_ai_generated ) {
throw new Error(
'AI content not generated: images not available'
);

View File

@ -0,0 +1,4 @@
Significance: minor
Type: fix
[CYS] Fix bug making the AI flow fail on the same prompt.