@gravity-ui/data-source
Version:
A wrapper around data fetching
8 lines • 405 B
JavaScript
export var getError = function getError(states) {
var _states$find$error, _states$find;
return (_states$find$error = (_states$find = states.find(function (_ref) {
var error = _ref.error;
return Boolean(error);
})) === null || _states$find === void 0 ? void 0 : _states$find.error) !== null && _states$find$error !== void 0 ? _states$find$error : null;
};
// #sourceMappingURL=getError.js.map