mirror of
https://github.com/directus/directus.git
synced 2026-01-25 19:58:23 -05:00
5
.changeset/tricky-bugs-listen.md
Normal file
5
.changeset/tricky-bugs-listen.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@directus/app': patch
|
||||
---
|
||||
|
||||
Don't allow contains on a UUID type
|
||||
@@ -15,13 +15,17 @@ export default function getAvailableOperatorsForType(type: string): OperatorType
|
||||
case 'status':
|
||||
case 'slug':
|
||||
case 'lang':
|
||||
case 'uuid':
|
||||
case 'hash':
|
||||
case 'string':
|
||||
return {
|
||||
type: 'text',
|
||||
operators: ['contains', 'ncontains', 'eq', 'neq', 'empty', 'nempty', 'in', 'nin'],
|
||||
};
|
||||
case 'uuid':
|
||||
return {
|
||||
type: 'text',
|
||||
operators: ['eq', 'neq', 'empty', 'nempty', 'in', 'nin'],
|
||||
};
|
||||
// Boolean
|
||||
case 'boolean':
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user