fix: copy template content when creating controlled document (#6441)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2024-08-29 19:20:32 +07:00
committed by GitHub
parent e072f05d97
commit 46ced93bc1
4 changed files with 51 additions and 8 deletions
@@ -24,7 +24,7 @@
type Data,
type Ref
} from '@hcengineering/core'
import { MessageBox, getClient } from '@hcengineering/presentation'
import { MessageBox, copyDocument, getClient } from '@hcengineering/presentation'
import {
AnySvelteComponent,
addNotification,
@@ -160,7 +160,9 @@
docObject,
_space,
$locationStep.project,
$locationStep.parent
$locationStep.parent,
documents.class.ControlledDocument,
copyDocument
)
if (!success) {