sharvil / atom-sequence-diagram

A sequence diagram generator for Atom.
Other
7 stars 4 forks source link

Uncaught TypeError: Cannot read property 'replace' of undefined #3

Open raphaelfeng opened 7 years ago

raphaelfeng commented 7 years ago

[Enter steps to reproduce:]

  1. create untitled tab in atom
  2. type in some digram text
  3. export the diagram

Atom: 1.21.1 x64 Electron: 1.6.15 OS: Mac OS X 10.12.6 Thrown From: sequence-diagram package 0.0.2

Stack Trace

Uncaught TypeError: Cannot read property 'replace' of undefined

At .atom/packages/sequence-diagram/src/diagram_view.js:82

TypeError: Cannot read property 'replace' of undefined
    at DiagramView._export (/packages/sequence-diagram/src/diagram_view.js:82:45)
    at Application.export_ (/packages/sequence-diagram/src/main.js:34:22)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:381:36)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:266:23)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1354:34)
    at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:348:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)