소스 검색

chore: remove hack

Tienson Qin 2 년 전
부모
커밋
7230938fca
2개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 2
      e2e-tests/editor.spec.ts
  2. 2 3
      src/main/frontend/modules/outliner/core.cljs

+ 0 - 2
e2e-tests/editor.spec.ts

@@ -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')
 

+ 2 - 3
src/main/frontend/modules/outliner/core.cljs

@@ -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]))
@@ -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}))))