@gravity-ui/data-source
Version:
A wrapper around data fetching
14 lines (13 loc) • 524 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getError = void 0;
var getError = exports.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
;