Skip to content

Commit fa17139

Browse files
committed
bugfix
1 parent ee6d80b commit fa17139

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactgenie-lib",
3-
"version": "1.1.54",
3+
"version": "1.1.55",
44
"description": "A Toolkit for Multimodal Applications",
55
"author": "valkjsaaa",
66
"license": "Apache-2.0",

src/shared-store.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -189,20 +189,24 @@ export function displayResult(
189189
displayingObject = allDisplayingObjects[0];
190190
if (
191191
Object.hasOwn(allDisplayingObjects[0], "value") &&
192+
Object.hasOwn(allDisplayingObjects[0].value, "localStore") &&
192193
allDisplayingObjects[0].value.localStore.__genieObjectType ===
193194
"HelperClass"
194195
) {
195-
continue; // can't display helper classes
196+
displayingObjectType = "undefined";
197+
displayingObject = null;
196198
}
197199
} else if (allDisplayingObjects.length > 1) {
198200
displayingObjectType = allDisplayingObjects[0].objectType + "[]";
199201
displayingObject = allDisplayingObjects;
200202
if (
201203
Object.hasOwn(allDisplayingObjects[0], "value") &&
204+
Object.hasOwn(allDisplayingObjects[0].value, "localStore") &&
202205
allDisplayingObjects[0].value.localStore.__genieObjectType ===
203206
"HelperClass"
204207
) {
205-
continue; // can't display helper classes
208+
displayingObjectType = "undefined";
209+
displayingObject = null;
206210
}
207211
} else if (allDisplayingObjects.length === 0) {
208212
displayingObjectType = "undefined";

0 commit comments

Comments
 (0)