nodecg / dashboard

A standalone application for viewing a NodeCG Dashboard.
11 stars 3 forks source link

Uploading or editing assets causes a crash #130

Closed hedgehog1029 closed 5 years ago

hedgehog1029 commented 5 years ago

When uploading new assets or editing asset names on disk (that latter part may be unsupported) NodeCG exits with the following traceback:

UNCAUGHT EXCEPTION! NodeCG will now exit.
TypeError: replicantsByNamespace[uploadedFile.namespace][uploadedFile.category].value.push is not a function
    at sha1File ([nodecg-root]/lib/assets/index.js:118:79)
    at ReadStream.<anonymous> ([nodecg-root]/node_modules/sha1-file/index.js:21:14)
    at ReadStream.emit (events.js:187:15)
    at ReadStream.EventEmitter.emit (domain.js:441:20)
    at endReadableNT (_stream_readable.js:1098:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)
hedgehog1029 commented 5 years ago

oh absolutely, my bad. I had a repo open and didn't notice which one :sweat_smile: