forked from mystiq/hydrogen-web
details do not need to be child of rooms
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
a4bcb21a85
commit
37e052c061
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ function allowsChild(parent, child) {
|
||||||
return type === "room" || type === "rooms" || type === "settings";
|
return type === "room" || type === "rooms" || type === "settings";
|
||||||
case "rooms":
|
case "rooms":
|
||||||
// downside of the approach: both of these will control which tile is selected
|
// downside of the approach: both of these will control which tile is selected
|
||||||
return type === "room" || type === "empty-grid-tile" || type === "details";
|
return type === "room" || type === "empty-grid-tile";
|
||||||
case "room":
|
case "room":
|
||||||
return type === "lightbox" || type === "details";
|
return type === "lightbox" || type === "details";
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue