Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
valkjsaaa committed May 14, 2024
1 parent cc26496 commit 0bee62b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/react-decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0bee62b

Please sign in to comment.