Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
yash committed Dec 5, 2018
1 parent cf42a7c commit f4a5a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/redux-subspace/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var isGlobal = function isGlobal(action) {

var namespacedAction = function namespacedAction(namespace) {
return function (action) {
return namespace && !isGlobal(action, namespace) && !action.alreadyNamespaced ? _objectSpread({}, action, {
return namespace && !isGlobal(action, namespace) || console.log('nameaction', acction) ? _objectSpread({}, action, {
type: namespace + "/" + action.type
}) : action;
};
Expand Down Expand Up @@ -297,7 +297,7 @@ var processAction = function processAction(namespace) {
return function (action, callback, defaultValue) {
console.log('chkkaction', action);

if (!namespace || isGlobal(action) || action.alreadyNameSpaced) {
if (!namespace || isGlobal(action)) {
return callback(action);
} else if (hasNamespace(action, namespace)) {
return callback(_objectSpread({}, action, {
Expand Down

0 comments on commit f4a5a5a

Please sign in to comment.