Skip to content

Commit 00d8917

Browse files
committed
Added extra check to see if the cast to DMADashboardQueryData will work.
1 parent e17ab79 commit 00d8917

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Dlls/WebApiLib.dll

58 KB
Binary file not shown.

Low Code App Editor_1/LCA/AppVersion.cs

+8-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ public List<string> GetUsedScripts()
3838
// Search through GQI queries for custom operators
3939
DataPool.ForEach(query =>
4040
{
41-
scripts.AddRange(FindScriptsInChild(((DMADashboardQueryData)query).Query));
41+
if(query is DMADashboardQueryData gqiQuery)
42+
{
43+
scripts.AddRange(FindScriptsInChild(gqiQuery.Query));
44+
}
4245
});
4346

4447
// Search through pages for scripts used in actions
@@ -59,7 +62,10 @@ public List<string> GetUsedDomModules()
5962
// Search through GQI queries for dom modules
6063
DataPool.ForEach(query =>
6164
{
62-
modules.AddRange(FindDomModulesInChild(((DMADashboardQueryData)query).Query));
65+
if(query is DMADashboardQueryData gqiQuery)
66+
{
67+
modules.AddRange(FindDomModulesInChild(gqiQuery.Query));
68+
}
6369
});
6470

6571
return modules.Distinct().ToList();

0 commit comments

Comments
 (0)