oa-componentbook 1.0.1-stage.87 → 1.0.1-stage.89

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.
@@ -177,7 +177,7 @@ function ApprovalWidget(_ref) {
177
177
  }, columnItems.map(item => /*#__PURE__*/_react.default.createElement("li", {
178
178
  key: item.title,
179
179
  className: "tooltip-item"
180
- }, !item.hideIcon && /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
180
+ }, !(status !== null && status !== void 0 && status.hideIcon) && /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
181
181
  size: 20,
182
182
  icon: item.type === "positive" ? _Check.default : _Close.default,
183
183
  color: item.type === "positive" ? "positive" : "negative"
@@ -284,7 +284,7 @@ function ApprovalWidget(_ref) {
284
284
  disabled: (_approvalForm$disable10 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable10 !== void 0 ? _approvalForm$disable10 : false
285
285
  }))))), actionRenderType === "buttonWithFormV4" && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
286
286
  name: "validateDocumentButton#".concat(questionId),
287
- initialValue: isApproved,
287
+ initialValue: approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.isApproved,
288
288
  rules: isMandatory ? [{
289
289
  required: true,
290
290
  message: dataTest ? /*#__PURE__*/_react.default.createElement("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-componentbook",
3
- "version": "1.0.1-stage.87",
3
+ "version": "1.0.1-stage.89",
4
4
  "private": false,
5
5
  "description": "Reusable components",
6
6
  "main": "build/index.js",