feature/IO-3096-GlobalNotifications - Checkpoint - clicking an individual notification will mark it read
This commit is contained in:
@@ -144,8 +144,8 @@ const notificationScenarios = [
|
||||
*
|
||||
* @returns {Array<Object>} An array of matching scenario objects.
|
||||
*/
|
||||
function getMatchingScenarios(eventData) {
|
||||
return notificationScenarios.filter((scenario) => {
|
||||
const getMatchingScenarios = (eventData) =>
|
||||
notificationScenarios.filter((scenario) => {
|
||||
// If eventData has a table, then only scenarios with a table property that matches should be considered.
|
||||
if (eventData.table) {
|
||||
if (!scenario.table || eventData.table.name !== scenario.table) {
|
||||
@@ -185,7 +185,6 @@ function getMatchingScenarios(eventData) {
|
||||
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
notificationScenarios,
|
||||
|
||||
Reference in New Issue
Block a user