Skip to content

Commit

Permalink
fix: plugins card remaining visible even when all plugins active
Browse files Browse the repository at this point in the history
  • Loading branch information
abaicus committed Jan 29, 2025
1 parent 572320e commit 2b6cec5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ const PluginCard = ({ slug, data }) => {
const PluginsCard = ({ grid = false }) => {
const { plugins } = neveDash;

if (NEVE_HIDE_PLUGINS || plugins.length < 1) {
const anyPluginsLeft = Object.values(plugins).some(
(plugin) => plugin.cta !== 'deactivate'
);

if (NEVE_HIDE_PLUGINS || !anyPluginsLeft) {
return null;
}

Expand Down

0 comments on commit 2b6cec5

Please sign in to comment.