@undp/carbon-library 1.0.95 → 1.0.96

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.
package/dist/cjs/index.js CHANGED
@@ -24033,7 +24033,7 @@ var css_248z$1 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-vi
24033
24033
  styleInject(css_248z$1);
24034
24034
 
24035
24035
  var ProgrammeDocuments = function (props) {
24036
- var data = props.data, title = props.title, icon = props.icon, programmeId = props.programmeId, programmeOwnerId = props.programmeOwnerId, getDocumentDetails = props.getDocumentDetails, getProgrammeById = props.getProgrammeById, ministryLevelPermission = props.ministryLevelPermission, linkDocVisible = props.linkDocVisible, uploadDocUserPermission = props.uploadDocUserPermission, useConnection = props.useConnection, useUserContext = props.useUserContext, translator = props.translator;
24036
+ var data = props.data, title = props.title, icon = props.icon, programmeId = props.programmeId, programmeOwnerId = props.programmeOwnerId, getDocumentDetails = props.getDocumentDetails, getProgrammeById = props.getProgrammeById, ministryLevelPermission = props.ministryLevelPermission, linkDocVisible = props.linkDocVisible, uploadDocUserPermission = props.uploadDocUserPermission, useConnection = props.useConnection, useUserContext = props.useUserContext, translator = props.translator, methodologyDocumentUpdated = props.methodologyDocumentUpdated;
24037
24037
  var t = translator.t;
24038
24038
  var userInfoState = useUserContext().userInfoState;
24039
24039
  var _a = useConnection(); _a.delete; var post = _a.post;
@@ -24143,9 +24143,11 @@ var ProgrammeDocuments = function (props) {
24143
24143
  })];
24144
24144
  case 3:
24145
24145
  response = _a.sent();
24146
+ console.log(response);
24146
24147
  fileInputRefMeth.current = null;
24147
24148
  if (response === null || response === void 0 ? void 0 : response.data) {
24148
24149
  setDocData(__spreadArray(__spreadArray([], docData, true), [response === null || response === void 0 ? void 0 : response.data], false));
24150
+ methodologyDocumentUpdated();
24149
24151
  antd.message.open({
24150
24152
  type: "success",
24151
24153
  content: "".concat(t("programme:isUploaded")),