File tree 2 files changed +8
-2
lines changed
Low Code App Editor_1/LCA
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ public List<string> GetUsedScripts()
38
38
// Search through GQI queries for custom operators
39
39
DataPool . ForEach ( query =>
40
40
{
41
- scripts . AddRange ( FindScriptsInChild ( ( ( DMADashboardQueryData ) query ) . Query ) ) ;
41
+ if ( query is DMADashboardQueryData gqiQuery )
42
+ {
43
+ scripts . AddRange ( FindScriptsInChild ( gqiQuery . Query ) ) ;
44
+ }
42
45
} ) ;
43
46
44
47
// Search through pages for scripts used in actions
@@ -59,7 +62,10 @@ public List<string> GetUsedDomModules()
59
62
// Search through GQI queries for dom modules
60
63
DataPool . ForEach ( query =>
61
64
{
62
- modules . AddRange ( FindDomModulesInChild ( ( ( DMADashboardQueryData ) query ) . Query ) ) ;
65
+ if ( query is DMADashboardQueryData gqiQuery )
66
+ {
67
+ modules . AddRange ( FindDomModulesInChild ( gqiQuery . Query ) ) ;
68
+ }
63
69
} ) ;
64
70
65
71
return modules . Distinct ( ) . ToList ( ) ;
You can’t perform that action at this time.
0 commit comments