Skip to content

Commit

Permalink
fix(editor): paragraph insert in factory create
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed May 21, 2022
1 parent b093fe8 commit 688c8c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/better-write-app/src/store/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useGlobalStore } from './global'
import { usePopulate } from '../use/populate'
import { useProject } from '@/use/project'
import { useFactory } from '../use/factory'
import { toRaw } from 'vue'

export const useProjectStore = defineStore('project', {
state: (): ProjectState => {
Expand Down Expand Up @@ -99,9 +98,7 @@ export const useProjectStore = defineStore('project', {
title,
entities: [
useFactory().entity().create('heading-one', title),
useFactory()
.entity()
.create('paragraph', usePopulate().debug().names().paragraph()),
useFactory().entity().create('paragraph', ''),
],
createdAt: useFormat().actually(),
updatedAt: useFormat().actually(),
Expand Down

0 comments on commit 688c8c2

Please sign in to comment.