mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
Fix: query not running on application load if query not accessible
This commit is contained in:
parent
c4b3144d64
commit
dc7744d8ad
1 changed files with 4 additions and 1 deletions
|
|
@ -420,7 +420,10 @@ export const createDataQuerySlice = (set, get) => ({
|
|||
const queries = get().dataQuery.queries.modules.canvas;
|
||||
try {
|
||||
for (const query of queries) {
|
||||
if ((query.options.runOnPageLoad || query.options.run_on_page_load) && isQueryRunnable(query)) {
|
||||
if (
|
||||
(query.options.runOnPageLoad || query.options.run_on_page_load) &&
|
||||
(query.restricted || isQueryRunnable(query))
|
||||
) {
|
||||
await get().queryPanel.runQuery(query.id, query.name, undefined, undefined, {}, false, true, 'canvas');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue