Skip to content

Commit

Permalink
chore: remove hack
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin authored and andelf committed Mar 29, 2023
1 parent 529a59d commit 7230938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions e2e-tests/editor.spec.ts
Expand Up @@ -168,8 +168,6 @@ test('copy & paste block ref and replace its content', async ({ page, block }) =
await createRandomPage(page)

await block.mustType('Some random text')
// FIXME: https://github.com/logseq/logseq/issues/7541
await page.waitForTimeout(1000)

await page.keyboard.press(modKey + '+c')

Expand Down
5 changes: 2 additions & 3 deletions src/main/frontend/modules/outliner/core.cljs
Expand Up @@ -13,8 +13,7 @@
[frontend.state :as state]
[frontend.util :as util]
[logseq.graph-parser.util :as gp-util]
[cljs.spec.alpha :as s]
[frontend.config :as config]))
[cljs.spec.alpha :as s]))

(s/def ::block-map (s/keys :req [:db/id]
:opt [:block/page :block/left :block/parent]))
Expand Down Expand Up @@ -558,7 +557,7 @@
[{:block/uuid (tree/-get-id next)
:block/left (:db/id left)}]))
full-tx (util/concat-without-nil uuids-tx tx next-tx)]
(when (and replace-empty-target? (not config/test?) (state/editing?))
(when (and replace-empty-target? (state/editing?))
(state/set-edit-content! (state/get-edit-input-id) (:block/content (first blocks))))
{:tx-data full-tx
:blocks tx}))))
Expand Down

0 comments on commit 7230938

Please sign in to comment.