feat: require auto-chain action evidence
This commit is contained in:
@@ -202,7 +202,12 @@ function hasAutoChainDispatchEvidence(input) {
|
||||
const value = getPathValue(input, fieldPath);
|
||||
if (hasNonEmptyString(value)) return true;
|
||||
if (Array.isArray(value)) return value.length > 0;
|
||||
if (value && typeof value === 'object') return Object.keys(value).length > 0;
|
||||
if (value && typeof value === 'object') {
|
||||
if (typeof value.action === 'string' && value.action.trim().length > 0) return true;
|
||||
if (typeof value.concreteNextAction === 'string' && value.concreteNextAction.trim().length > 0) return true;
|
||||
if (typeof value.dispatched === 'boolean') return value.dispatched;
|
||||
return Object.keys(value).length > 0;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user