@zeniai/client-epic-state 4.10.83 → 4.10.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.getCompanyInfoForAllCockpitCompaniesInState = exports.getControllersForCompany = exports.getOnboardingCompletedCompanyByCompanyId = exports.getOnboardingCompanyByCompanyIds = exports.getOnboardingCompanyByCompanyId = exports.getCompanyByCompanyId = exports.getCompanyByCompanyIds = void 0;
|
|
7
7
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
8
8
|
const get_1 = __importDefault(require("lodash/get"));
|
|
9
|
-
const uniqby_1 = __importDefault(require("lodash/uniqby"));
|
|
10
9
|
const userSelector_1 = require("../user/userSelector");
|
|
11
10
|
const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
|
|
12
11
|
function getCompanyByCompanyIds(companyState, companyIds) {
|
|
@@ -94,11 +93,11 @@ const getCompanyInfoForAllCockpitCompaniesInState = (state) => {
|
|
|
94
93
|
];
|
|
95
94
|
const reducedFetchState = (0, reduceFetchState_1.reduceAllFetchState)(allFetchStates);
|
|
96
95
|
if (reducedFetchState.fetchState === 'Completed') {
|
|
97
|
-
const allCompanyIds = Object.keys(companyState.companiesById)
|
|
96
|
+
const allCompanyIds = Object.keys(companyState.companiesById);
|
|
98
97
|
const allOnboardingCompanyIds = Object.keys(companyState.onboardingCompaniesById);
|
|
99
98
|
const allCompanies = getCompanyByCompanyIds(companyState, allCompanyIds).map((company) => company.company.companyInfo);
|
|
100
99
|
const allOnboardingCompanies = getOnboardingCompanyByCompanyIds(companyState, allOnboardingCompanyIds).map((company) => company.company.companyInfo);
|
|
101
|
-
return
|
|
100
|
+
return allCompanies.concat(allOnboardingCompanies);
|
|
102
101
|
}
|
|
103
102
|
return [];
|
|
104
103
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.85",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|