Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit a268785

Browse files
committed
Fix AYS supress condition.
1 parent 7913f93 commit a268785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/customize-snapshots.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@
661661
} );
662662

663663
api.bind( 'changeset-saved', function() {
664-
if ( 'auto-draft' === api.state( 'changesetStatus' ).get() ) {
664+
if ( 'auto-draft' !== api.state( 'changesetStatus' ).get() ) {
665665
api.state( 'saved' ).set( true ); // Suppress the AYS dialog.
666666
}
667667
});

0 commit comments

Comments
 (0)