chore: allows slate to render
This commit is contained in:
@@ -14,7 +14,6 @@ import httpStatus from 'http-status'
|
||||
import type { FieldSchemaMap } from '../../utilities/buildFieldSchemaMap/types.js'
|
||||
|
||||
import { buildFieldSchemaMap } from '../../utilities/buildFieldSchemaMap/index.js'
|
||||
import { routeError } from './routeError.js'
|
||||
|
||||
let cached = global._payload_fieldSchemaMap
|
||||
|
||||
|
||||
@@ -399,6 +399,8 @@ const validateFilterOptions: Validate<
|
||||
return true
|
||||
}
|
||||
|
||||
if (!options[collection]) return true
|
||||
|
||||
return options[collection].indexOf(requestedID) === -1
|
||||
})
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ const RelationshipElement: React.FC<Props> = () => {
|
||||
const [relatedCollection, setRelatedCollection] = useState(() =>
|
||||
collections.find((coll) => coll.slug === relationTo),
|
||||
)
|
||||
|
||||
const selected = useSelected()
|
||||
const focused = useFocused()
|
||||
const { i18n, t } = useTranslation()
|
||||
|
||||
Reference in New Issue
Block a user