Skip to content

Commit

Permalink
fix(editor): entity blank line in remove env keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed May 24, 2022
1 parent e18732e commit 14ea14e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/better-write-app/src/use/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const useFactory = () => {
if (type === 'line-break') {
return {
type,
raw: raw || env.lineBreak(),
raw: raw || '',
createdAt: format.actually(),
updatedAt: format.actually(),
...defaults(),
Expand All @@ -65,7 +65,7 @@ export const useFactory = () => {
if (type === 'page-break') {
return {
type,
raw: raw || env.pageBreak(),
raw: raw || '',
createdAt: format.actually(),
updatedAt: format.actually(),
...defaults(),
Expand All @@ -75,7 +75,7 @@ export const useFactory = () => {
if (type === 'checkbox') {
return {
type,
raw: raw || env.emptyLine(),
raw: raw || '',
createdAt: format.actually(),
updatedAt: format.actually(),
...defaults(),
Expand All @@ -91,7 +91,7 @@ export const useFactory = () => {
if (type === 'list') {
return {
type,
raw: raw || env.emptyLine(),
raw: raw || '',
createdAt: format.actually(),
updatedAt: format.actually(),
...defaults(),
Expand All @@ -107,7 +107,7 @@ export const useFactory = () => {
if (type === 'paragraph') {
return {
type,
raw: raw || env.emptyLine(),
raw: raw || '',
createdAt: format.actually(),
updatedAt: format.actually(),
...defaults(),
Expand Down Expand Up @@ -167,7 +167,7 @@ export const useFactory = () => {

return {
type,
raw: raw || env.emptyLine(),
raw: raw || '',
createdAt: format.actually(),
updatedAt: format.actually(),
...defaults(),
Expand Down

0 comments on commit 14ea14e

Please sign in to comment.