select first available ticker for new blocks

This commit is contained in:
Stefan Kalscheuer 2020-01-13 17:28:19 +01:00
parent dba37eb64b
commit 5c4b1eaf60

View File

@ -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,