function* fetch({ url }) {
	yield put(Connected.setStateAction({ loading: true }));
	const { response, data } = yield call(cmf.sagas.http.get, url);

	if (response.ok) {
		yield put(
			cmf.actions.collections.addOrReplace(Constants.COLLECTION_ID, {
				version: data.displayVersion,
				services: data.services.map(({ serviceName, buildId, versionId }) => ({
					name: serviceName,
					version: versionId,
					build: buildId,
				})),
			}),
		);
		yield put(Connected.setStateAction({ loading: false }));
	}
}
/**
 * This saga takes care of fetching versions for the AboutDialog
 * container according to the provided versions URL in the action payload.
 * @param {Object} action
 */
This saga takes care of fetching versions for the AboutDialog
container according to the provided versions URL in the action payload.
@param {Object} action
This saga takes care of fetching versions for the AboutDialog container according to the provided versions URL in the action payload . @param { Object } action
function* fetch({ url }) {
	yield put(Connected.setStateAction({ loading: true }));
	const { response, data } = yield call(cmf.sagas.http.get, url);
	if (response.ok) {
		yield put(
			cmf.actions.collections.addOrReplace(Constants.COLLECTION_ID, {
				version: data.displayVersion,
				services: data.services.map(({ serviceName, buildId, versionId }) => ({
					name: serviceName,
					version: versionId,
					build: buildId,
				})),
			}),
		);
		yield put(Connected.setStateAction({ loading: false }));
	}
}
function * fetch ( { url } ) { yield put ( Connected . setStateAction ( { loading : true } ) ) ; const { response , data } = yield call ( cmf . sagas . http . get , url ) ; if ( response . ok ) { yield put ( cmf . actions . collections . addOrReplace ( Constants . COLLECTION_ID , { version : data . displayVersion , services : data . services . map ( ( { serviceName , buildId , versionId } ) => ( { name : serviceName , version : versionId , build : buildId , } ) ) , } ) , ) ; yield put ( Connected . setStateAction ( { loading : false } ) ) ; } }
This saga takes care of fetching versions for the AboutDialog
 container according to the provided versions URL in the action payload.
This saga takes care of fetching versions for the AboutDialog container according to the provided versions URL in the action payload .