center-for-threat-informed-defense / tram

TRAM is an open-source platform designed to advance research into automating the mapping of cyber threat intelligence reports to MITRE ATT&CK®.
https://ctid.mitre-engenuity.org/our-work/tram/
Apache License 2.0
446 stars 96 forks source link

Upload - Uploads file twice #7

Closed MarkDavidson closed 3 years ago

MarkDavidson commented 3 years ago

There appears to be duplicate code:

First set:

  1. https://github.com/center-for-threat-informed-defense/tram/blob/master/static/js/basic.js#L208
  2. https://github.com/center-for-threat-informed-defense/tram/blob/master/static/js/basic.js#L218

Second set:

  1. https://github.com/center-for-threat-informed-defense/tram/blob/master/static/js/basic.js#L608
  2. https://github.com/center-for-threat-informed-defense/tram/blob/master/static/js/basic.js#L617

These are duplicates and one should be removed. Looks like the code on lines 608/617 should be removed?

MarkDavidson commented 3 years ago

This bug no longer exists.