function toggleClassroomTile (state, { rowIndex, colIndex }) {
  if (state.currentClassroom.grids.hasOwnProperty(rowIndex)) {
    let row = state.currentClassroom.grids[rowIndex]
    if (row.hasOwnProperty(colIndex)) {
      if (row[colIndex].type === consts.GRIDS_FLOOR) {
        state.currentClassroom.grids[rowIndex][colIndex].type = consts.GRIDS_DESK
      } else if (row[colIndex].type === consts.GRIDS_DESK) {
        state.currentClassroom.grids[rowIndex][colIndex].type = consts.GRIDS_FLOOR
      }
    }
  }
}
/**
 * Toggle a tile between desk and floor
 * @param state
 * @param rowIndex
 * @param colIndex
 */
Toggle a tile between desk and floor
@param state
@param rowIndex
@param colIndex
Toggle a tile between desk and floor @param state @param rowIndex @param colIndex
function toggleClassroomTile (state, { rowIndex, colIndex }) {
  if (state.currentClassroom.grids.hasOwnProperty(rowIndex)) {
    let row = state.currentClassroom.grids[rowIndex]
    if (row.hasOwnProperty(colIndex)) {
      if (row[colIndex].type === consts.GRIDS_FLOOR) {
        state.currentClassroom.grids[rowIndex][colIndex].type = consts.GRIDS_DESK
      } else if (row[colIndex].type === consts.GRIDS_DESK) {
        state.currentClassroom.grids[rowIndex][colIndex].type = consts.GRIDS_FLOOR
      }
    }
  }
}
function toggleClassroomTile ( state , { rowIndex , colIndex } ) { if ( state . currentClassroom . grids . hasOwnProperty ( rowIndex ) ) { let row = state . currentClassroom . grids [ rowIndex ] if ( row . hasOwnProperty ( colIndex ) ) { if ( row [ colIndex ] . type === consts . GRIDS_FLOOR ) { state . currentClassroom . grids [ rowIndex ] [ colIndex ] . type = consts . GRIDS_DESK } else if ( row [ colIndex ] . type === consts . GRIDS_DESK ) { state . currentClassroom . grids [ rowIndex ] [ colIndex ] . type = consts . GRIDS_FLOOR } } } }
Toggle a tile between desk and floor
 @param state
 @param rowIndex
 @param colIndex
Toggle a tile between desk and floor @param state @param rowIndex @param colIndex