Skip to content

Commit

Permalink
stop attempting to display helper class
Browse files Browse the repository at this point in the history
  • Loading branch information
valkjsaaa committed May 14, 2024
1 parent 0bee62b commit 1dec21b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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.52",
"version": "1.1.53",
"description": "A Toolkit for Multimodal Applications",
"author": "valkjsaaa",
"license": "Apache-2.0",
Expand Down
14 changes: 14 additions & 0 deletions src/shared-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,23 @@ export function displayResult(
if (allDisplayingObjects.length === 1) {
displayingObjectType = allDisplayingObjects[0].objectType;
displayingObject = allDisplayingObjects[0];
if (
Object.hasOwn(allDisplayingObjects[0], "value") &&
allDisplayingObjects[0].value.localStore.__genieObjectType ===
"HelperClass"
) {
continue; // can't display helper classes
}
} else if (allDisplayingObjects.length > 1) {
displayingObjectType = allDisplayingObjects[0].objectType + "[]";
displayingObject = allDisplayingObjects;
if (
Object.hasOwn(allDisplayingObjects[0], "value") &&
allDisplayingObjects[0].value.localStore.__genieObjectType ===
"HelperClass"
) {
continue; // can't display helper classes
}
} else if (allDisplayingObjects.length === 0) {
displayingObjectType = "undefined";
displayingObject = null;
Expand Down

0 comments on commit 1dec21b

Please sign in to comment.