Wrong error triggered for duplicated filter in the custom filters table
Environment
- latest release 2019-1
- not browser specific
Reproduction steps
- Navigate to the custom filters table in the Advanced tab of the Settings page.
- Add two filters:
foo
andbar
- Edit filter
bar
intofoo
(so that you end up with a duplicated filterfoo
)
Observed
- Generic error message (as implemented in #7 (closed)), that animates as a red banner from the top of the page, is triggered.
- Error is thrown in the console:
Uncaught TypeError: Error in invocation of i18n.getMessage(string messageName, optional any substitutions): No matching signature.
Expected
- After editing an existing filter into a duplicate, the red alert icon should show in the respective row of the edited filter in the custom filters table. It should display
'Something went wrong, please try again.'
error message on hover. - There should be no errors in the console
- Generic error message should not be triggered
Additional info
#486 (closed) might be the culprit