Browse Source

fix: regression with deleting on built-in property tables

Built-in property tables don't delete relationships so we shouldn't
update the table
Gabriel Horner 9 months ago
parent
commit
0710211b75
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/frontend/components/views.cljs

+ 3 - 3
src/main/frontend/components/views.cljs

@@ -561,7 +561,8 @@
 
         nil))
 
-     (when-not (= view-feature-type :all-pages)
+     (when-not (or (= view-feature-type :all-pages)
+                   (and (= view-feature-type :property-objects) (:logseq.property/built-in? view-parent)))
        (update-table-state!)))))
 
 (defn- table-header
@@ -1739,8 +1740,7 @@
      * columns: view columns including properties and db attributes, which could be built by `build-columns`
      * add-new-object!: `fn` to create a new object (or row)
      * show-add-property?: whether to show `Add property`
-     * add-property!: `fn` to add a new property (or column)
-     * on-delete-rows: `fn` to trigger when deleting selected objects"
+     * add-property!: `fn` to add a new property (or column)"
   < (rum/local nil ::scroller-ref)
   [state view-entity option]
   (rum/with-key (view-inner view-entity