mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2026-05-31 10:18:52 +00:00
fix(submission): open detail tab from current layout
This commit is contained in:
parent
6764ca3416
commit
be8f3ee945
@ -51,6 +51,9 @@ export const SubmissionTableRow = ({
|
||||
if (detailTab) {
|
||||
model.doAction(Actions.selectTab("detail"));
|
||||
} else {
|
||||
const submissionTab = model.getNodeById("submission");
|
||||
const targetNodeId = submissionTab?.getParent()?.getId() ?? model.getRoot().getId();
|
||||
|
||||
model.doAction(
|
||||
Actions.addNode(
|
||||
{
|
||||
@ -59,7 +62,7 @@ export const SubmissionTableRow = ({
|
||||
name: "Details",
|
||||
component: "detail",
|
||||
},
|
||||
"1",
|
||||
targetNodeId,
|
||||
DockLocation.CENTER,
|
||||
-1
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user