File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed
components/emailTypeSelector Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,6 @@ interface Option {
54
54
*/
55
55
export default function Edit ( ) {
56
56
const [ meta , setMeta ] = usePostMeta ( ) ;
57
- // const meta = {};
58
- // const setMeta = (newMeta: any) => {
59
- // console.log(newMeta);
60
- // };
61
57
const {
62
58
nb_newsletter_subject : subject ,
63
59
nb_newsletter_preview : preview ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ function EmailTypeSelector({
78
78
// Set the meta to be the first option if it's not set. This matches what is already
79
79
// happpening in the UI.
80
80
useEffect ( ( ) => {
81
- if ( ! fromNameValue ) {
81
+ if ( ! fromNameValue && fromNames . length > 0 ) {
82
82
fromNameHandler ( fromNames [ 0 ] ) ;
83
83
}
84
84
} , [ fromNameHandler , fromNameValue ] ) ;
Original file line number Diff line number Diff line change 3
3
* Plugin Name: Newsletter Builder
4
4
* Plugin URI: https://github.com/alleyinteractive/wp-newsletter-builder
5
5
* Description: Interface to manage email newsletters
6
- * Version: 0.3.1
6
+ * Version: 0.3.2
7
7
* Author: Alley Interactive
8
8
* Author URI: https://github.com/alleyinteractive/wp-newsletter-builder
9
9
* Requires at least: 5.9
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ function action_enqueue_block_editor_assets() {
102
102
global $ post_type ;
103
103
104
104
// Only enqueue the script to register the scripts if supported.
105
- if ( 'nb_newsletter ' !== $ post_type ) {
105
+ if ( 'nb_newsletter ' !== $ post_type && ' nb_template ' !== $ post_type ) {
106
106
return ;
107
107
}
108
108
You can’t perform that action at this time.
0 commit comments