select first available ticker for new blocks
This commit is contained in:
parent
dba37eb64b
commit
5c4b1eaf60
@ -122,6 +122,9 @@
|
||||
];
|
||||
} else {
|
||||
// Tickers loaded and available.
|
||||
if ( 0 === props.attributes.ticker.length && props.tickers.length > 0 ) {
|
||||
props.attributes.ticker = props.tickers[ 0 ].slug;
|
||||
}
|
||||
content = [
|
||||
el(
|
||||
wp.components.SelectControl,
|
||||
|
Loading…
x
Reference in New Issue
Block a user