Skip to content

Commit

Permalink
fix(editor): new project reset entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Mar 28, 2023
1 parent e73ecc2 commit 329cb68
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/better-write-app/src/store/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,7 @@ export const useProjectStore = defineStore('project', {
keywords: options.keywords || 'docx,project',
subject: options.subject || 'betterwrite',
type: options.type,
base:
options.base ?? options?.type === 'only-annotations'
? 'annotations'
: 'chapter' || 'chapter',
base: options.base || 'chapter',
totalPagesCreated: options.totalPagesCreated || 1,
main: options.main || {},
summary: options.summary || {},
Expand All @@ -140,11 +137,7 @@ export const useProjectStore = defineStore('project', {
{
id: useUtils().id().uuidv4(),
title: `${forceTitle || title} | ${useFormat().actually()}`,
entities: [
useFactory()
.entity()
.create('heading-one', forceTitle || title),
],
entities: [],
createdAt: useFormat().actually(),
updatedAt: useFormat().actually(),
},
Expand Down

0 comments on commit 329cb68

Please sign in to comment.