Skip to content

Commit

Permalink
fix: remove duplicate entries
Browse files Browse the repository at this point in the history
  • Loading branch information
nirbhayel committed Dec 3, 2024
1 parent a71eaca commit 06b1cbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
5 changes: 1 addition & 4 deletions modules/settings/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ import { usePluginSettingsContext } from './contexts/plugin-settings';
import { Sidebar } from './layouts/sidebar';

const App = () => {
useSavedSettings();
const { isConnected } = usePluginSettingsContext();
const { notificationMessage, notificationType } = useNotificationSettings();
const { selectedMenu } = useSettings();
useSavedSettings();
const { isConnected } = usePluginSettingsContext();
const { notificationMessage, notificationType } = useNotificationSettings();
const { selectedMenu } = useSettings();

// Accessing the selected menu item
const selectedParent = MenuItems[selectedMenu.parent];
Expand Down
13 changes: 3 additions & 10 deletions modules/settings/assets/js/components/bottom-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,10 @@ const BottomBar = () => {
style: iconDesign,
position: iconPosition,
},
}).then(() => {
success('Settings saved!');
setHasChanges(false);
await save({
a11y_widget_icon_settings: {
style: iconDesign,
position: iconPosition,
},
});
success('Settings saved!');
setHasChanges(false);

success('Settings saved!');
setHasChanges(false);
} catch (e) {
error('Failed to save settings!');
}
Expand Down

0 comments on commit 06b1cbd

Please sign in to comment.