mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-06-19 07:00:41 +08:00
This commit is contained in:
committed by
Rikin Kachhia
parent
aae68873da
commit
c85986c922
@@ -72,7 +72,11 @@ const runQuery = tableSchema => {
|
||||
return w;
|
||||
}
|
||||
if (colType === 'boolean') {
|
||||
w[colName][opName] = val === 'true' ? true : false;
|
||||
if (val === 'true') {
|
||||
w[colName][opName] = true;
|
||||
} else if (val === 'false') {
|
||||
w[colName][opName] = false;
|
||||
}
|
||||
}
|
||||
return w;
|
||||
});
|
||||
|
||||
@@ -12,7 +12,6 @@ import dataHeaders from '../Common/Headers';
|
||||
/* ****************** View actions *************/
|
||||
const V_SET_DEFAULTS = 'ViewTable/V_SET_DEFAULTS';
|
||||
const V_REQUEST_SUCCESS = 'ViewTable/V_REQUEST_SUCCESS';
|
||||
const V_REQUEST_ERROR = 'ViewTable/V_REQUEST_ERROR';
|
||||
const V_EXPAND_REL = 'ViewTable/V_EXPAND_REL';
|
||||
const V_CLOSE_REL = 'ViewTable/V_CLOSE_REL';
|
||||
const V_SET_ACTIVE = 'ViewTable/V_SET_ACTIVE';
|
||||
@@ -101,7 +100,12 @@ const vMakeRequest = () => {
|
||||
}
|
||||
},
|
||||
error => {
|
||||
dispatch({ type: V_REQUEST_ERROR, data: error });
|
||||
Promise.all([
|
||||
dispatch(
|
||||
showErrorNotification('Browse query failed!', error.error, error)
|
||||
),
|
||||
dispatch({ type: V_REQUEST_PROGRESS, data: false }),
|
||||
]);
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user