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:
Seyi Adebajo 2018-03-05 08:29:03 -08:00
parent 656fe9ae34
commit 73f0ea651f
3 changed files with 7 additions and 5 deletions

View File

@ -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: '---------',

View File

@ -24,6 +24,4 @@
</a>
</span>
{{/if}}
{{else}}
No known owners
{{/if}}

View File

@ -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|}}