mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
FIX: Make category-drop work with lazy_load_categories (#24187)
The category drop was rerendered after every category async change because it updated the categories list. This is not necessary and categories can be referenced indirectly by ID instead.
This commit is contained in:
@ -1160,6 +1160,7 @@ Discourse::Application.routes.draw do
|
||||
|
||||
resources :categories, except: %i[show new edit]
|
||||
post "categories/reorder" => "categories#reorder"
|
||||
get "categories/find" => "categories#find"
|
||||
get "categories/search" => "categories#search"
|
||||
|
||||
scope path: "category/:category_id" do
|
||||
|
Reference in New Issue
Block a user