thm-p3-configurator 0.0.167 → 0.0.169

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.
@@ -110,20 +110,20 @@ function _toPrimitive(t, r) {
110
110
  return ("string" === r ? String : Number)(t);
111
111
  }
112
112
  const InternalSessionEditPage = props => {
113
- var _props$match, _props$match2, _props$match3;
113
+ var _props$match;
114
114
  const [dossierType] = (0, _useSearchParam.default)(['dossierType']); // Note: this is of type `DOSSIER_TYPES` (found in __constants__ folder)
115
115
 
116
116
  const queryClient = (0, _reactQuery.useQueryClient)();
117
117
  const formula = (0, _FormulaContext.useFormula)();
118
- queryClient.invalidateQueries([dossierType, props === null || props === void 0 || (_props$match = props.match) === null || _props$match === void 0 || (_props$match = _props$match.params) === null || _props$match === void 0 ? void 0 : _props$match.id]);
119
- console.log([dossierType, props === null || props === void 0 || (_props$match2 = props.match) === null || _props$match2 === void 0 || (_props$match2 = _props$match2.params) === null || _props$match2 === void 0 ? void 0 : _props$match2.id]);
118
+ queryClient.invalidateQueries();
120
119
  const {
121
120
  dossierById,
122
121
  isDossierByIdError
123
122
  } = (0, _queries.usePrivateDossierByTypeAndIdQuery)({
124
- dossierId: props === null || props === void 0 || (_props$match3 = props.match) === null || _props$match3 === void 0 || (_props$match3 = _props$match3.params) === null || _props$match3 === void 0 ? void 0 : _props$match3.id,
123
+ dossierId: props === null || props === void 0 || (_props$match = props.match) === null || _props$match === void 0 || (_props$match = _props$match.params) === null || _props$match === void 0 ? void 0 : _props$match.id,
125
124
  dossierType: dossierType
126
125
  });
126
+ console.log('dossierById', dossierById);
127
127
  const [_, dispatch] = (0, _OrderSessionContext.useOrderSession)();
128
128
  const history = (0, _reactRouter.useHistory)();
129
129
  const hydrateOrderSessionByDossier = (0, _react.useCallback)(async dossierById => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.167",
3
+ "version": "0.0.169",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",