fix: Nested document menu item appears where it shouldnt (#1193)

This commit is contained in:
Tom Moor
2020-02-26 21:10:10 -08:00
committed by GitHub
parent 148affb52e
commit d06ec5ce0c
4 changed files with 33 additions and 11 deletions

View File

@@ -185,7 +185,7 @@ class DocumentMenu extends React.Component<Props> {
</DropdownMenuItem>
</React.Fragment>
)}
{can.update && (
{can.createChildDocument && (
<DropdownMenuItem
onClick={this.handleNewChild}
title="Create a nested document inside the current document"