mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-01 13:46:41 +00:00
Auto-select last document when saving new document
This commit is contained in:
parent
5445164d6f
commit
0de2d6d899
@ -453,6 +453,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
.then(() => setSelectedRows(new Set([documentIds.length - 1])))
|
||||||
.finally(() => setIsExecuting(false));
|
.finally(() => setIsExecuting(false));
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1284,6 +1285,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
.then(() => setSelectedRows(new Set([documentIds.length - 1])))
|
||||||
.finally(() => setIsExecuting(false));
|
.finally(() => setIsExecuting(false));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user