Skip to content

Commit 684265e

Browse files
author
p01
committed
Make sure the frame still exists in the expand-collapse handler. It may have been invalidated since the view was last updated.
1 parent e8bc5a8 commit 684265e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/resource-manager/resource_service.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,15 @@ cls.ResourceManagerService = function(view)
9999
var frameID = target.getAttribute('data-frame-id');
100100
var data = this._context.frames[ frameID ];
101101

102+
if (!data)
103+
return;
104+
102105
var groupName = target.getAttribute('data-resource-group');
103106
if (groupName){ data = data.groups[ groupName ]; }
104107

108+
if (!data)
109+
return;
110+
105111
data.closed = !data.closed;
106112
if (data.closed)
107113
{

0 commit comments

Comments
 (0)