mirror of
https://github.com/directus/directus.git
synced 2026-02-04 17:54:58 -05:00
@@ -322,6 +322,7 @@ export function useItem(collection: Ref<string>, primaryKey: Ref<string | number
|
||||
const conditions = [...field.meta.conditions].reverse();
|
||||
|
||||
const matchingCondition = conditions.find((condition) => {
|
||||
if (!condition.rule || Object.keys(condition.rule).length !== 1) return;
|
||||
const errors = validatePayload(condition.rule, item, { requireAll: true });
|
||||
return errors.length === 0;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user