mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-30 20:15:56 +00:00
refactors is id check in dataset compliance list generation. reenables component render for dataset owner list and removes false condition no known owners text
This commit is contained in:
parent
656fe9ae34
commit
73f0ea651f
@ -334,8 +334,9 @@ export default class DatasetCompliance extends Component {
|
||||
* @returns {Array<IComplianceFieldIdentifierOption>}
|
||||
*/
|
||||
const insertDivider = (types: Array<IComplianceFieldIdentifierOption>): Array<IComplianceFieldIdentifierOption> => {
|
||||
const ids = types.filter(({ isId }) => isId);
|
||||
const nonIds = types.filter(({ isId }) => !isId);
|
||||
const isId = ({ isId }: IComplianceFieldIdentifierOption): boolean => isId;
|
||||
const ids = types.filter(isId);
|
||||
const nonIds = types.filter(type => !isId(type));
|
||||
const divider = {
|
||||
value: '',
|
||||
label: '---------',
|
||||
|
@ -24,6 +24,4 @@
|
||||
</a>
|
||||
</span>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
No known owners
|
||||
{{/if}}
|
||||
|
@ -41,10 +41,13 @@
|
||||
{{/if}}
|
||||
|
||||
<h3 class="dataset-name">
|
||||
{{model.nativeName}}
|
||||
<div class="container">
|
||||
{{model.nativeName}}
|
||||
</div>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
{{dataset-owner-list owners=owners datasetName=model.nativeName}}
|
||||
</div>
|
||||
|
||||
{{#ivy-tabs selection=tabSelected as |tabs|}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user