Skip to content

Commit 50a5fa4

Browse files
authored
PS-887 fix aws translate (#636)
1 parent 8e1b6be commit 50a5fa4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

databox/api/src/Integration/Aws/Translate/TranslateAction.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ public function doHandle(RunContext $context): void
9797

9898
foreach ($attributesSources as $attribute) {
9999
$text = $attribute->getValue();
100+
101+
if (empty($text)) {
102+
continue;
103+
}
104+
100105
$toTranslates[] = [
101106
'text' => $text,
102107
'sourceLanguage' => $sourceLanguage,

0 commit comments

Comments
 (0)