thm-p3-configurator 0.0.166 → 0.0.167
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.
|
@@ -35,6 +35,7 @@ var _helpers__ = require("../../__helpers__");
|
|
|
35
35
|
var _dossier = require("../../__helpers__/dossier");
|
|
36
36
|
var _useSearchParam = _interopRequireDefault(require("../../__hooks__/useSearchParam"));
|
|
37
37
|
var _authenticatedProxyApi = require("../../__api__/authenticatedProxyApi");
|
|
38
|
+
var _reactQuery = require("react-query");
|
|
38
39
|
function _interopRequireDefault(e) {
|
|
39
40
|
return e && e.__esModule ? e : {
|
|
40
41
|
default: e
|
|
@@ -109,15 +110,18 @@ function _toPrimitive(t, r) {
|
|
|
109
110
|
return ("string" === r ? String : Number)(t);
|
|
110
111
|
}
|
|
111
112
|
const InternalSessionEditPage = props => {
|
|
112
|
-
var _props$match;
|
|
113
|
+
var _props$match, _props$match2, _props$match3;
|
|
113
114
|
const [dossierType] = (0, _useSearchParam.default)(['dossierType']); // Note: this is of type `DOSSIER_TYPES` (found in __constants__ folder)
|
|
114
115
|
|
|
116
|
+
const queryClient = (0, _reactQuery.useQueryClient)();
|
|
115
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]);
|
|
116
120
|
const {
|
|
117
121
|
dossierById,
|
|
118
122
|
isDossierByIdError
|
|
119
123
|
} = (0, _queries.usePrivateDossierByTypeAndIdQuery)({
|
|
120
|
-
dossierId: props === null || props === void 0 || (_props$
|
|
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,
|
|
121
125
|
dossierType: dossierType
|
|
122
126
|
});
|
|
123
127
|
const [_, dispatch] = (0, _OrderSessionContext.useOrderSession)();
|