@umituz/react-native-ai-generation-content 1.12.42 → 1.12.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -31,9 +31,8 @@ export function checkStatusForErrors(
|
|
|
31
31
|
const hasStatusError = !!statusError;
|
|
32
32
|
|
|
33
33
|
// Check logs array for ERROR/FATAL level logs
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
: [];
|
|
34
|
+
const rawLogs = (status as JobStatus)?.logs;
|
|
35
|
+
const logs = Array.isArray(rawLogs) ? rawLogs : [];
|
|
37
36
|
const errorLogs = logs.filter((log) => {
|
|
38
37
|
const level = String(log?.level || "").toUpperCase();
|
|
39
38
|
return level === "ERROR" || level === "FATAL";
|