Skip to content

Commit

Permalink
Merge pull request #116 from mat-app/Generator--index-and-detail-gene…
Browse files Browse the repository at this point in the history
…ration

Fix DataGrid searching
  • Loading branch information
jozef-slezak committed Jun 7, 2021
2 parents eb2e881 + ed5ad2a commit dcc9cf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-lowcode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iteria-app/react-lowcode",
"version": "0.5.2",
"version": "0.5.3",
"description": "Automate React Apps.",
"scripts": {
"build": "npx tsc",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-lowcode/src/codegen/ast/widgetDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export function isDataTableWidget(sourceCode:string, position: SourceLineCol): b
}else{
let dataGridNode = astCode.getChildAt(1) as ts.JsxSelfClosingElement

if(dataGridNode)//todo(mch): very very uglu, need to be refactored to be more generic
isDataTableDeclaration = dataGridNode.getChildAt(0).getChildAt(1).getText() === 'DataGrid'
if(dataGridNode && dataGridNode.getChildAt(0)?.getChildAt(1)?.getText() === 'DataGrid')//todo(mch): very very uglu, need to be refactored to be more generic
isDataTableDeclaration = true
}
}

Expand Down

0 comments on commit dcc9cf9

Please sign in to comment.