mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 05:45:15 +00:00
fix(TypeError): Cannot read properties of undefined (reading 'find')
This commit is contained in:
@@ -44,7 +44,14 @@ export function validateRowFilters(params: {
|
||||
timezone?: string;
|
||||
};
|
||||
}) {
|
||||
const { filters: _filters, data = {}, columns, client, metas, baseId } = params;
|
||||
const {
|
||||
filters: _filters,
|
||||
data = {},
|
||||
columns = [],
|
||||
client,
|
||||
metas,
|
||||
baseId,
|
||||
} = params;
|
||||
if (!_filters.length) {
|
||||
return true;
|
||||
}
|
||||
@@ -324,7 +331,11 @@ export function validateRowFilters(params: {
|
||||
|
||||
const relatedModelId = colOptions?.fk_related_model_id;
|
||||
|
||||
const relatedMeta = getMetaWithCompositeKey(metas, baseId, relatedModelId);
|
||||
const relatedMeta = getMetaWithCompositeKey(
|
||||
metas,
|
||||
baseId,
|
||||
relatedModelId
|
||||
);
|
||||
|
||||
if (!relatedMeta?.columns) {
|
||||
res = false;
|
||||
|
||||
Reference in New Issue
Block a user