Refactor getEditDetailsElement to use an object lookup

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: Normal
    • 2025-11-03
    • 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.

            Assignee:
            Nicolás Tamargo
            Reporter:
            Michael Wiencek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2025-11-03