mirror of
https://github.com/mathuo/dockview
synced 2025-07-24 02:46:04 +00:00
fix: failed to find group
This commit is contained in:
parent
73e5dc3571
commit
38323d9429
@ -800,7 +800,7 @@ export class DockviewComponent
|
|||||||
group = item;
|
group = item;
|
||||||
|
|
||||||
const popoutReferenceGroupId = this._popoutGroups.find(
|
const popoutReferenceGroupId = this._popoutGroups.find(
|
||||||
(_) => _.popoutGroup === group
|
(_) => _.popoutGroup.id === group.id
|
||||||
)?.referenceGroup;
|
)?.referenceGroup;
|
||||||
const popoutReferenceGroup = popoutReferenceGroupId
|
const popoutReferenceGroup = popoutReferenceGroupId
|
||||||
? this.getPanel(popoutReferenceGroupId)
|
? this.getPanel(popoutReferenceGroupId)
|
||||||
@ -1715,7 +1715,7 @@ export class DockviewComponent
|
|||||||
|
|
||||||
if (group.api.location.type === 'floating') {
|
if (group.api.location.type === 'floating') {
|
||||||
const floatingGroup = this._floatingGroups.find(
|
const floatingGroup = this._floatingGroups.find(
|
||||||
(_) => _.group === group
|
(_) => _.group.id === group.id
|
||||||
);
|
);
|
||||||
|
|
||||||
if (floatingGroup) {
|
if (floatingGroup) {
|
||||||
@ -1728,7 +1728,7 @@ export class DockviewComponent
|
|||||||
remove(this._floatingGroups, floatingGroup);
|
remove(this._floatingGroups, floatingGroup);
|
||||||
floatingGroup.dispose();
|
floatingGroup.dispose();
|
||||||
|
|
||||||
if (!options?.skipActive && this._activeGroup === group) {
|
if (!options?.skipActive && this._activeGroup?.id === group.id) {
|
||||||
const groups = Array.from(this._groups.values());
|
const groups = Array.from(this._groups.values());
|
||||||
|
|
||||||
this.doSetGroupAndPanelActive(
|
this.doSetGroupAndPanelActive(
|
||||||
@ -1744,7 +1744,7 @@ export class DockviewComponent
|
|||||||
|
|
||||||
if (group.api.location.type === 'popout') {
|
if (group.api.location.type === 'popout') {
|
||||||
const selectedGroup = this._popoutGroups.find(
|
const selectedGroup = this._popoutGroups.find(
|
||||||
(_) => _.popoutGroup === group
|
(_) => _.popoutGroup.id === group.id
|
||||||
);
|
);
|
||||||
|
|
||||||
if (selectedGroup) {
|
if (selectedGroup) {
|
||||||
@ -1771,7 +1771,7 @@ export class DockviewComponent
|
|||||||
this.doSetGroupAndPanelActive(removedGroup);
|
this.doSetGroupAndPanelActive(removedGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options?.skipActive && this._activeGroup === group) {
|
if (!options?.skipActive && this._activeGroup?.id === group.id) {
|
||||||
const groups = Array.from(this._groups.values());
|
const groups = Array.from(this._groups.values());
|
||||||
|
|
||||||
this.doSetGroupAndPanelActive(
|
this.doSetGroupAndPanelActive(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user