Skip to content

Commit

Permalink
add hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed May 13, 2024
1 parent c32573e commit 4bb4fab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ window.Typerefinery.Page.Events = Typerefinery.Page.Events || {};
eventNs.registerEvents(topicName, (data) => {
// check make sure the event is for this event
console.log(["event data", data]);
if (data.type === eventName) {
if (data.type === eventName) {
ns.handleEventAction($component, action, data);
}
});
Expand Down Expand Up @@ -170,7 +170,7 @@ window.Typerefinery.Page.Events = Typerefinery.Page.Events || {};
ns.handleEventAction = ($component, action, data) => {
console.group('handleEvent');
console.log(["handleEvent", $component, action, data]);
//load data into form
//FIXME: execute the correct function based on action from current namespace
if (action === "ADD_ITEM") {
ns.addNewItem($component, data);
}
Expand Down

0 comments on commit 4bb4fab

Please sign in to comment.