Skip to content

Commit

Permalink
Fix(MWPW-167810): Sidekick preflight - Lorem ipsum bug. (#3750)
Browse files Browse the repository at this point in the history
* debounce preflight listener call

* adding back the empty line
  • Loading branch information
sharath-kannan authored Mar 10, 2025
1 parent b25ebc8 commit 232a45f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/utils/sidekick.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import stylePublish from './sidekick-decorate.js';
import { debounce } from './action.js';

// loadScript and loadStyle are passed in to avoid circular dependencies
export default function init({ createTag, loadBlock, loadScript, loadStyle }) {
Expand Down Expand Up @@ -37,7 +38,7 @@ export default function init({ createTag, loadBlock, loadScript, loadStyle }) {
// Add plugin listeners here
sk.addEventListener('custom:send-to-caas', sendToCaasListener);
sk.addEventListener('custom:check-schema', checkSchemaListener);
sk.addEventListener('custom:preflight', preflightListener);
sk.addEventListener('custom:preflight', debounce(() => preflightListener(), 500));

// Color code publish button
stylePublish(sk);
Expand Down

0 comments on commit 232a45f

Please sign in to comment.