Skip to content

Commit

Permalink
fix typeinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jogibear9988 committed Mar 11, 2024
1 parent a325dc2 commit 6d6cd14
Show file tree
Hide file tree
Showing 2 changed files with 6 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": "@node-projects/propertygrid.webcomponent",
"version": "1.0.2",
"version": "1.0.3",
"description": "a propertygrid webcomponent.",
"type": "module",
"main": "./dist/PropertyGrid.js",
Expand Down
8 changes: 5 additions & 3 deletions src/PropertyGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export function typeInfoFromJsonSchema(jsonSchemaObj: any, obj: any, type: strin
let usedType = type ?? obj.type;
if (usedType) {
const def = jsonSchemaObj.definitions[usedType];
if (!def)
return null;
let tInfo: ITypeInfo = {};
tInfo.name = usedType;
tInfo.properties = [];
Expand Down Expand Up @@ -245,9 +247,9 @@ export class PropertyGrid extends BaseCustomWebComponentConstructorAppend {
debugLevel: 0,
scrollIntoViewOnExpandClick: false,
iconMap: {
expanderCollapsed: new URL("../../assets/images/expander.svg", import.meta.url).toString(),
expanderExpanded: new URL("../../assets/images/expanderClose.svg", import.meta.url).toString(),
},
expanderCollapsed: new URL("../../assets/images/expander.svg", import.meta.url).toString(),
expanderExpanded: new URL("../../assets/images/expanderClose.svg", import.meta.url).toString(),
},
quicksearch: true,
checkbox: false,
source: [],
Expand Down

0 comments on commit 6d6cd14

Please sign in to comment.