MCPcopy Create free account
hub / github.com/StevenLyt/mapf-visualizer / closeDropdown

Method closeDropdown

src/components/UploadMap.jsx:20–26  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

18 }
19
20 closeDropdown(map) {
21 this.setState({ isDropdownOpen: null });
22 map = require("../assets/maps/" + map);
23 fetch(map)
24 .then((r) => r.text())
25 .then((text) => this.parseMap(text));
26 }
27
28 uploadMap(e) {
29 var file = e.target.files[0];

Callers 1

renderMethod · 0.95

Calls 1

parseMapMethod · 0.95

Tested by

no test coverage detected