Skip to content

Commit

Permalink
fix: debug error caused by Design Pack notice
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani committed Aug 20, 2024
1 parent c4b4a6b commit 6741dfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion assets/js/src/design-pack-notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { createRoot } from '@wordpress/element';

import DesignPackNotice from './components/DesignPackNotice';

const container = document.getElementById( 'fork-design-pack-notice' );
const container = document.createElement( 'div' );
container.id = 'fork-design-pack-notice';
document.body.appendChild( container );

if ( container ) {
createRoot( container ).render( <DesignPackNotice /> );
Expand Down
2 changes: 0 additions & 2 deletions inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ public function add_fse_design_pack_notice() {
),
'designPackNoticeData'
);

echo '<div id="fork-design-pack-notice"></div>';
}

/**
Expand Down

0 comments on commit 6741dfe

Please sign in to comment.