Skip to content

Commit

Permalink
Merge pull request #6757 from TheThingsNetwork/fix/console-event-name…
Browse files Browse the repository at this point in the history
…-check

Check if action/event exist before checking the name
  • Loading branch information
KrishnaIyer authored Dec 11, 2023
2 parents 4f6dfa4 + a14dcc8 commit c0687cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webui/console/store/middleware/logics/gateways.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const updateGatewayStatisticsLogic = createRequestLogic({
const getGatewayEventLocationLogic = createLogic({
type: gateways.GET_GTW_EVENT_MESSAGE_SUCCESS,
validate: ({ action }, allow, reject) => {
if (action.event.name !== 'gs.status.receive' || !action?.event?.data?.antenna_locations) {
if (action?.event?.name !== 'gs.status.receive' || !action?.event?.data?.antenna_locations) {
reject(action)
} else {
allow(action)
Expand Down

0 comments on commit c0687cf

Please sign in to comment.