-
Type:
Task
-
Resolution: Fixed
-
Priority:
Normal
-
Affects Version/s: None
-
Component/s: JavaScript, Templates
-
None
root/edit/utility/getEditDetailsElement.js is currently implemented as a giant switch/match statement which performs a linear run of typeof/property existence checks on somewhere between 100-200 edit types. It would be better performance-wise to define an edit_type => component map and perform a single lookup in that.