Fix same issue but in SSR code

pull/248/head
Paul Sauve 8 years ago committed by GitHub
parent 01cc3564be
commit d767e6af75

@ -21,7 +21,7 @@ export default {
} else if ( attribute.value.length === 1 ) {
const chunk = attribute.value[0];
if ( chunk.type === 'Text' ) {
value = isNaN( parseFloat( chunk.data ) ) ? JSON.stringify( chunk.data ) : chunk.data;
value = isNaN( chunk.data ) ? JSON.stringify( chunk.data ) : chunk.data;
} else {
const { snippet } = generator.contextualise( chunk.expression );
value = snippet;

Loading…
Cancel
Save