Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d305b21b2 | ||
|
|
0b210e0d35 | ||
|
|
c8afb83130 | ||
|
|
49981f6ae3 | ||
|
|
b3b17e8d0c | ||
|
|
5d45f57e00 |
@@ -31,7 +31,13 @@ export async function initializeDataCube (component, layout) {
|
||||
}
|
||||
|
||||
const app = qlik.currApp(component);
|
||||
const hyperCubeDef = (await component.backendApi.getProperties()).qHyperCubeDef;
|
||||
const properties = (await component.backendApi.getProperties());
|
||||
|
||||
// If this is a master object, fetch the hyperCubeDef of the original object
|
||||
const hyperCubeDef = properties.qExtendsId
|
||||
? (await app.getObjectProperties(properties.qExtendsId)).properties.qHyperCubeDef
|
||||
: properties.qHyperCubeDef;
|
||||
|
||||
return buildDataCube(hyperCubeDef, layout.qHyperCube.qDimensionInfo.length === 2, app);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user