Skip to content

Commit

Permalink
Simplify DropdownHelper initialization in InnerSidebarElement by remo…
Browse files Browse the repository at this point in the history
…ving null check for 'create-new-dropdown'
  • Loading branch information
Adammatthiesen committed Jan 24, 2025
1 parent 2aebd02 commit 95e5ab1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ const { isNewFolder, isNewPage } = Astro.props;
import { DropdownHelper } from 'studiocms:ui/components';

document.addEventListener('astro:page-load', () => {
if (document.getElementById('create-new-dropdown')) {
new DropdownHelper('create-new-dropdown');
}
new DropdownHelper('create-new-dropdown');
});
</script>

Expand Down

0 comments on commit 95e5ab1

Please sign in to comment.