wp plugin and app fixes adn automation page update

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-12 01:12:08 +00:00
parent 3925ddf894
commit 90b9d6aadc
19 changed files with 1918 additions and 336 deletions

View File

@@ -27,10 +27,8 @@ export const useModuleStore = create<ModuleState>()((set, get) => ({
set({ loading: true, error: null });
try {
const settings = await fetchGlobalModuleSettings();
console.log('Loaded global module settings:', settings);
set({ settings, loading: false });
} catch (error: any) {
console.error('Failed to load global module settings:', error);
set({
error: error.message || 'Failed to load module settings',
loading: false
@@ -49,7 +47,6 @@ export const useModuleStore = create<ModuleState>()((set, get) => ({
const fieldName = `${moduleName.toLowerCase()}_enabled` as keyof GlobalModuleSettings;
const enabled = settings[fieldName] === true;
console.log(`Module check for '${moduleName}' (${fieldName}): ${enabled}`);
return enabled;
},