@rh-support/troubleshoot 1.0.2 → 1.0.3

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.
@@ -1,4 +1,5 @@
1
1
  interface IProps {
2
+ init?: boolean;
2
3
  }
3
4
  declare function CaseGroup(props: IProps): JSX.Element;
4
5
  export default CaseGroup;
@@ -1 +1 @@
1
- {"version":3,"file":"CaseGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/CaseGroup.tsx"],"names":[],"mappings":"AAiBA,UAAU,MAAM;CAAG;AAInB,iBAAS,SAAS,CAAC,KAAK,EAAE,MAAM,eA0N/B;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"CaseGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/CaseGroup.tsx"],"names":[],"mappings":"AAiBA,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAID,iBAAS,SAAS,CAAC,KAAK,EAAE,MAAM,eA2N/B;AAED,eAAe,SAAS,CAAC"}
@@ -56,7 +56,9 @@ function CaseGroup(props) {
56
56
  defaultMembers: [],
57
57
  members: [],
58
58
  };
59
- onCaseGroupChange(toOption(parsedFetchedDefaultGroup, { labelKey: 'name' }));
59
+ groupNumber === '-1' &&
60
+ props.init &&
61
+ onCaseGroupChange(toOption(parsedFetchedDefaultGroup, { labelKey: 'name' }));
60
62
  }
61
63
  }
62
64
  });
@@ -58,7 +58,7 @@ export default function CaseManagement(props) {
58
58
  React.createElement(SupportLevel, null),
59
59
  React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange }),
60
60
  React.createElement(Fts, { inlineEditable: false }),
61
- React.createElement(CaseGroup, null),
61
+ React.createElement(CaseGroup, { init: true }),
62
62
  React.createElement(CaseLanguageSelector, null),
63
63
  canSeeEmailNotifications && React.createElement(CaseContactSelector, null),
64
64
  React.createElement(RHAssociatesSelector, null),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -73,11 +73,11 @@
73
73
  "@patternfly/react-core": "4.202.16",
74
74
  "@progress/kendo-drawing": "^1.6.0",
75
75
  "@progress/kendo-react-pdf": "^3.12.0",
76
- "@rh-support/components": "1.2.0",
77
- "@rh-support/react-context": "1.0.1",
76
+ "@rh-support/components": "1.2.1",
77
+ "@rh-support/react-context": "1.0.2",
78
78
  "@rh-support/types": "0.2.0",
79
- "@rh-support/user-permissions": "1.0.0",
80
- "@rh-support/utils": "1.0.0",
79
+ "@rh-support/user-permissions": "1.0.1",
80
+ "@rh-support/utils": "1.0.1",
81
81
  "@types/react-redux": "^7.1.12",
82
82
  "@types/redux": "^3.6.0",
83
83
  "@webcomponents/webcomponentsjs": "^2.2.10",
@@ -142,5 +142,5 @@
142
142
  "not ie <= 11",
143
143
  "not op_mini all"
144
144
  ],
145
- "gitHead": "455d21baf7d383cdd9a58ba9ff6483dd4a9b60a9"
145
+ "gitHead": "4c44ec177438ff8e09a761a4f38ce3fbd83c7aaa"
146
146
  }