Skip to content

Commit 439f458

Browse files
committed
Fixing stray require statement
1 parent 01f2ff1 commit 439f458

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

helpers/dataManipulation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @flow
2-
2+
import moment from 'moment/min/moment-with-locales'
33
export type headingLevelType = 1 | 2 | 3 | 4 | 5
44

55
/**
@@ -373,7 +373,6 @@ export function getDateValue(input: string | Date, defaultValue: Date = new Date
373373

374374
if (typeof input === 'string') {
375375
try {
376-
const moment = require('moment')
377376
const parsed = moment(input)
378377
if (parsed.isValid()) {
379378
return parsed.toDate()

0 commit comments

Comments
 (0)