diff --git a/package.json b/package.json index aa14efa..7298d9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reactgenie-lib", - "version": "1.1.51", + "version": "1.1.52", "description": "A Toolkit for Multimodal Applications", "author": "valkjsaaa", "license": "Apache-2.0", diff --git a/src/react-decorators.ts b/src/react-decorators.ts index 9e24374..c831cc0 100644 --- a/src/react-decorators.ts +++ b/src/react-decorators.ts @@ -121,9 +121,9 @@ export interface GenieInterfaceSpec extends GenieObjectSpec { export function InstantiateGenieObject(objectSpec: GenieObjectSpec): any { // check if localStore is a property of objectSpec - if (Object.hasOwn(objectSpec, "localStore")) { - if (objectSpec["localStore"]["__genieObjectClass"] == "HelperClass") { - return objectSpec; + if (Object.hasOwn(objectSpec.key, "localStore")) { + if (objectSpec.key["localStore"]["__genieObjectType"] == "HelperClass") { + return objectSpec.key; } } const objectClass = AllGenieObjects[objectSpec.className] as typeof DataClass;