use right collection for filter (#16002)

This commit is contained in:
Nitwel
2022-10-14 20:33:24 +02:00
committed by GitHub
parent 9edf9f9ce0
commit 64f60a007a

View File

@@ -13,7 +13,7 @@ export default defineInterface({
localTypes: ['m2m'],
group: 'relational',
options: ({ editing, relations, field: { meta } }) => {
const { collection, related_collection } = relations.o2m ?? {};
const { collection, related_collection } = relations.m2o ?? {};
const options = meta?.options ?? {};
const tableOptions = [