| @@ -32,9 +32,9 @@ | ||
| 32 | 32 | let newGrid = JSON.parse( JSON.stringify( this.props.grid ) ); |
| 33 | 33 | let oldGrid = JSON.parse( JSON.stringify( prevProps.grid ) ); |
| 34 | 34 | |
| 35 | 35 | // Ignore grid fields. |
| 36 | - const ignoreGridFields = [ 'name', 'slug', 'metadata', 'metadata_name', 'metadata_description' ]; | |
| 36 | + const ignoreGridFields = [ 'name', 'slug' ]; | |
| 37 | 37 | for ( let ignoreField of ignoreGridFields ) { |
| 38 | 38 | delete newGrid[ ignoreField ]; |
| 39 | 39 | delete oldGrid[ ignoreField ]; |
| 40 | 40 | } |
| @@ -144,10 +144,9 @@ | ||
| 144 | 144 | }, () => { |
| 145 | 145 | WPUPG_Grids[ 'wpupg-grid-preview' ].layout(); |
| 146 | 146 | }); |
| 147 | 147 | }} |
| 148 | - data-device={ device.value } | |
| 149 | - className={ `wpupg-admin-modal-grid-preview-device${device.value === this.state.device ? ' active' : ''}` } | |
| 148 | + className={ device.value === this.state.device ? 'active' : null } | |
| 150 | 149 | key={ index } |
| 151 | 150 | >{ device.label }</span> |
| 152 | 151 | )) |
| 153 | 152 | } |