Bug 41354: Fix record sources Vue app
It fixes a JS error in the console Uncaught (in promise) TypeError: can't convert undefined to object Also fixes the cypress tests: t/cypress/integration/Admin/RecordSources_spec.ts Test plan: Create a new record source Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
f4d8525806
commit
77bcaa9879
|
|
@ -290,9 +290,9 @@ export default {
|
|||
).map(col => {
|
||||
const filterOptions =
|
||||
props.instancedResource.tableOptions.filters_options;
|
||||
const filterRequired = Object.keys(filterOptions).includes(
|
||||
col.data
|
||||
);
|
||||
const filterRequired =
|
||||
filterOptions &&
|
||||
Object.keys(filterOptions).includes(col.data);
|
||||
if (filterRequired) {
|
||||
col.dataFilter = col.data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue