Skip to content

Commit

Permalink
style(lint): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Jan 18, 2018
1 parent 9b5c66e commit 5fe0ea8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/editor/components/pattern/EditShapePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default class EditShapePanel extends Component {
title: `Delete shape for trip pattern?`,
body: `Are you sure you want to delete this trip pattern shape?`,
onConfirm: () => {
// FIXME: Do we need to update pattern geometry, too?
updateActiveEntity(activePattern, 'trippattern', {shapePoints: []})
saveActiveEntity('trippattern')
}
Expand All @@ -112,7 +113,7 @@ export default class EditShapePanel extends Component {
activePattern,
controlPoints, // FIXME use to describe which segment user is editing
patternSegment,
patternSegments,
// patternSegments,
editSettings: editSettingsState,
resnapStops,
setActivePatternSegment,
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/components/timetable/CalendarSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class CalendarSelect extends Component {
}

_optionRenderer = (option) => {
const {activePattern} = this.props
// const {activePattern} = this.props
// FIXME: undefined trip count field in graphql
const patternTrips = 0 // (activePattern && activePattern.tripCountByCalendar[option.value]) || 0
const routeCount = 0 // Object.keys(option.calendar.routes).length
Expand Down
4 changes: 2 additions & 2 deletions lib/editor/util/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export async function recalculateSegment ({
// FIXME: handle remove

// update positions of the rest of the control points based on distance offset
let offset = getOffsetDistance(editType, index, newSegment, controlPoints)
const offset = getOffsetDistance(editType, index, newSegment, controlPoints)
// console.log('', indexOffset, newSegment.coordinates.length)
// For each control point after index, add cloned control point with new distance
controlPoints.slice(index + 1).forEach(controlPoint =>
Expand Down Expand Up @@ -474,7 +474,7 @@ export function constructShapePoints (controlPoints, patternSegments) {
for (var i = 0; i < controlPoints.length; i++) {
const controlPoint = controlPoints[i]
const {point, pointType} = controlPoint
let lastDistance = shapePoints.length
const lastDistance = shapePoints.length
? shapePoints[shapePoints.length - 1].shapeDistTraveled
: 0
shapePoints.push({
Expand Down

0 comments on commit 5fe0ea8

Please sign in to comment.