diff --git a/packages/components/src/testing/testing-ground/testing-ground.tsx b/packages/components/src/testing/testing-ground/testing-ground.tsx
index 861857e91..af4c1d4b2 100755
--- a/packages/components/src/testing/testing-ground/testing-ground.tsx
+++ b/packages/components/src/testing/testing-ground/testing-ground.tsx
@@ -1,5 +1,5 @@
import { Component, h } from '@stencil/core';
-import { initialize } from '@iot-app-kit/core';
+import { initialize, DataModule } from '@iot-app-kit/core';
import {
ASSET_DETAILS_QUERY,
DEMO_TURBINE_ASSET_1,
@@ -17,8 +17,10 @@ const VIEWPORT = { duration: '5m' };
styleUrl: 'testing-ground.css',
})
export class TestingGround {
+ private dataModule: DataModule;
+
componentWillLoad() {
- initialize({ awsCredentials: getEnvCredentials(), awsRegion: 'us-west-2' });
+ this.dataModule = initialize({ awsCredentials: getEnvCredentials(), awsRegion: 'us-west-2' });
}
render() {
@@ -29,6 +31,7 @@ export class TestingGround {