mediawiki-extensions-Visual.../modules/ve-mw
Thiemo Kreuz 866547d081 Harden …TemplateTitleInputWidget to avoid JS console spam
I run into this in some local test. There are two reasons this code
can be reached:
* When a wiki doesn't have the TemplateData extension, the
  additional API call from line #154 will fail. But the original
  search query succeeded. We have the `originalResponse` and can
  return it. This makes the code behave as if the additional
  TemplateData API call was never done.
* But what if the original search query failed? We still end in
  line #183 – as we should. But this time it can't return anything
  but undefined. This will be considered a valid, successful API
  response. But it isn't.

There might be a better way to clean up this chain of promises.
This is the smallest fix I found.

Change-Id: I02d3d053156da222ee424382007621f314777015
2021-10-06 20:14:55 +00:00
..
ce Use less repetitive code when calling .showHandles() 2021-09-03 09:16:22 +02:00
dm Add missing @fires documentation tags 2021-09-30 15:50:33 +00:00
init Add missing @fires documentation tags 2021-09-30 15:50:33 +00:00
preinit Give the categories box a highlight on hover 2021-09-22 21:17:40 -05:00
tests Better name for .selectPartByPageName() method 2021-10-01 07:00:40 +00:00
themes
ui Harden …TemplateTitleInputWidget to avoid JS console spam 2021-10-06 20:14:55 +00:00