mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-20 23:28:01 +00:00
DSS-5277 Fixes bug with missing params property on controller depending on route entry point
This commit is contained in:
parent
ad5ea169d7
commit
8704d10150
@ -154,10 +154,12 @@ App.DatasetRoute = Ember.Route.extend({
|
|||||||
// Flatten nested structure if present
|
// Flatten nested structure if present
|
||||||
return [].concat(...getFieldTypeSet(JSON.parse(schema))); // TODO: cover n-th dimension, if expected
|
return [].concat(...getFieldTypeSet(JSON.parse(schema))); // TODO: cover n-th dimension, if expected
|
||||||
};
|
};
|
||||||
|
controller.set("hasProperty", false);
|
||||||
|
|
||||||
controller.set('datasetSchemaFieldsAndTypes', getFieldNamesAndTypesFrom(params.dataset.schema));
|
|
||||||
controller.set('securitySpec', params.securitySpec);
|
|
||||||
|
|
||||||
|
if (params && params.id) {
|
||||||
|
({id, source, urn, name} = params);
|
||||||
|
let originalSchema = params;
|
||||||
|
|
||||||
controller.set("hasProperty", false);
|
controller.set("hasProperty", false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user