| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | * @param {string} params.attributes.id Table ID. |
| 23 | 23 | * @param {string} params.attributes.parameters Table render attributes. |
| 24 | 24 | * @return {Element} Element to render. |
| 25 | 25 | */ |
| 26 | -export default function save( { attributes: { id = '', parameters = '' } } ) { | |
| 26 | +const save = ( { attributes: { id = '', parameters = '' } } ) => { | |
| 27 | 27 | if ( '' === id ) { |
| 28 | 28 | return ''; |
| 29 | 29 | } |
| 30 | 30 | |
| @@ -32,5 +32,7 @@ | ||
| 32 | 32 | if ( '' !== parameters ) { |
| 33 | 33 | parameters += ' '; |
| 34 | 34 | } |
| 35 | 35 | return <RawHTML>{ `[${ tp.table.shortcode } id=${ id } ${ parameters }/]` }</RawHTML>; |
| 36 | -} | |
| 36 | +}; | |
| 37 | + | |
| 38 | +export default save; | |