Skip to content

Commit 4d61f56

Browse files
authored
Merge branch 'master' into refactor/full_portal
2 parents add4ae8 + 4da9d12 commit 4d61f56

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/react-sdk-components/src/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ function ListViewActionButtons(props: ListViewActionButtonsProps) {
4949
getPConnect()
5050
.getActionsApi()
5151
.submitEmbeddedDataModal(context)
52-
.then(() => {})
53-
.finally(() => {
52+
.then(() => {
5453
setIsDisabled(false);
5554
closeActionsDialog();
55+
})
56+
.catch(err => {
57+
// eslint-disable-next-line no-console
58+
console.log(err);
5659
});
5760
}}
5861
>

packages/react-sdk-components/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
383383
};
384384

385385
function descendingComparator<T>(a: T, b: T, orderedBy: keyof T) {
386+
if (!orderedBy || (!a[orderedBy] && !b[orderedBy])) {
387+
return 0;
388+
}
386389
if (!b[orderedBy] || b[orderedBy] < a[orderedBy]) {
387390
return -1;
388391
}

0 commit comments

Comments
 (0)