mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: Clicking on templates in settings table does nothing
This commit is contained in:
@@ -56,7 +56,7 @@ const TemplateRowContextMenu = observer(function TemplateRowContextMenu({
|
||||
export function TemplatesTable(props: Props) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const handleOpen = (template: Template) => () => {
|
||||
const handleOpen = (template: Template) => {
|
||||
history.push(template.path);
|
||||
};
|
||||
|
||||
@@ -122,7 +122,10 @@ export function TemplatesTable(props: Props) {
|
||||
type: "action",
|
||||
id: "action",
|
||||
component: (template) => (
|
||||
<TemplateMenu template={template} onEdit={handleOpen(template)} />
|
||||
<TemplateMenu
|
||||
template={template}
|
||||
onEdit={() => handleOpen(template)}
|
||||
/>
|
||||
),
|
||||
width: "50px",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user