mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 07:28:58 +08:00

Handle the case of https://github.com/discourse/DiscoTOC doing this kind of setup: ``` return { action: "insertDtoc", icon: "align-left", label: themePrefix("insert_table_of_contents"), condition: !composerController.get("model.canCategorize") }; ``` In this case there's no function to call, it's already set.