@pega/react-sdk-overrides 0.24.2 → 0.24.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,8 +1,4 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
1
2
|
export function isEmptyObject(obj: Object): boolean {
|
|
2
3
|
return Object.keys(obj).length === 0;
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
-
export function isInfinity23OrHigher() {
|
|
6
|
-
const pCoreVersion = PCore.getPCoreVersion();
|
|
7
|
-
return ['8.23.0', '23.1.1', '23.1.2'].includes(pCoreVersion);
|
|
8
|
-
}
|
|
@@ -139,6 +139,10 @@ export default function DeferLoad(props: DeferLoadProps) {
|
|
|
139
139
|
.refreshCaseView(encodeURI(loadViewCaseID), name, '') // 3rd arg empty string until typedef allows optional
|
|
140
140
|
.then((data: any) => {
|
|
141
141
|
onResponse(data.root);
|
|
142
|
+
})
|
|
143
|
+
.catch(error => {
|
|
144
|
+
// eslint-disable-next-line no-console
|
|
145
|
+
console.log(`deferload: ${error}`);
|
|
142
146
|
});
|
|
143
147
|
}
|
|
144
148
|
}, [name, getPConnect, currentLoadedAssignment]);
|
|
@@ -8,7 +8,6 @@ import download from 'downloadjs';
|
|
|
8
8
|
|
|
9
9
|
import { buildFilePropsFromResponse, getIconFromFileType, validateMaxSize } from '@pega/react-sdk-components/lib/components/helpers/attachmentHelpers';
|
|
10
10
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
11
|
-
import { isInfinity23OrHigher } from '@pega/react-sdk-components/lib/components/helpers/common-utils';
|
|
12
11
|
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
13
12
|
|
|
14
13
|
import './Attachment.css';
|
|
@@ -61,7 +60,7 @@ export default function Attachment(props: AttachmentProps) {
|
|
|
61
60
|
const [toggleUploadBegin, setToggleUploadBegin] = useState(false);
|
|
62
61
|
|
|
63
62
|
const resetAttachmentStoredState = () => {
|
|
64
|
-
PCore.getStateUtils().updateState(pConn.getContextName(), getAttachmentKey(
|
|
63
|
+
PCore.getStateUtils().updateState(pConn.getContextName(), getAttachmentKey(valueRef), undefined, {
|
|
65
64
|
pageReference: 'context_data',
|
|
66
65
|
isArrayDeepMerge: false
|
|
67
66
|
});
|
package/package.json
CHANGED