Auto-select last document when saving new document

This commit is contained in:
Laurent Nguyen 2024-04-22 14:21:52 +02:00
parent 5445164d6f
commit 0de2d6d899

View File

@ -453,6 +453,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
);
},
)
.then(() => setSelectedRows(new Set([documentIds.length - 1])))
.finally(() => setIsExecuting(false));
};
@ -1284,6 +1285,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
);
},
)
.then(() => setSelectedRows(new Set([documentIds.length - 1])))
.finally(() => setIsExecuting(false));
};