mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Fix: permission icon not updating in component config handle
This commit is contained in:
parent
412f5ad837
commit
ba5f51888d
1 changed files with 2 additions and 2 deletions
|
|
@ -1996,8 +1996,8 @@ export const createComponentsSlice = (set, get) => ({
|
|||
});
|
||||
},
|
||||
setComponentPermission: (componentId, data) => {
|
||||
const { currentPageId, modules } = get();
|
||||
const currentPageIndex = modules.canvas.pages.findIndex((page) => page.id === currentPageId);
|
||||
const { modules } = get();
|
||||
const currentPageIndex = modules.canvas.currentPageIndex;
|
||||
const component = modules.canvas.pages[currentPageIndex]?.components?.[componentId];
|
||||
|
||||
if (component) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue