Skip to content

Commit

Permalink
Merge pull request #493 from bigcapitalhq/BIG-198
Browse files Browse the repository at this point in the history
fix: Something wrong in uploading uncategorized bank transactions
  • Loading branch information
abouolia authored Jun 9, 2024
2 parents bc67f0c + 4d73b59 commit 858f347
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions packages/server/src/services/Resource/ResourceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,28 @@ export default class ResourceService {
const $hasFields = (field) =>
'undefined' !== typeof field.fields ? field : undefined;

const $hasColumns = (column) =>
const $ColumnHasColumns = (column) =>
'undefined' !== typeof column.columns ? column : undefined;

const $hasColumns = (columns) =>
'undefined' !== typeof columns ? columns : undefined;

const naviagations = [
['fields', qim.$each, 'name'],
['fields', qim.$each, $enumerationType, 'options', qim.$each, 'label'],
['fields2', qim.$each, 'name'],
['fields2', qim.$each, $enumerationType, 'options', qim.$each, 'label'],
['fields2', qim.$each, $hasFields, 'fields', qim.$each, 'name'],
['columns', qim.$each, 'name'],
['columns', qim.$each, $hasColumns, 'columns', qim.$each, 'name'],
['columns', $hasColumns, qim.$each, 'name'],
[
'columns',
$hasColumns,
qim.$each,
$ColumnHasColumns,
'columns',
qim.$each,
'name',
],
];
return this.i18nService.i18nApply(naviagations, meta, tenantId);
}
Expand Down

0 comments on commit 858f347

Please sign in to comment.