From 29107b3429c19fcc3ce580f70b1713c503845996 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 19 Dec 2023 12:47:22 +0000 Subject: [PATCH] DEV: Stop exporting internal routeAction function (#24946) Consumers should use the default export. This function doesn't work directly (unless you manually construct its arguments) - the default export helper handles all that automatically. --- app/assets/javascripts/discourse/app/helpers/route-action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/helpers/route-action.js b/app/assets/javascripts/discourse/app/helpers/route-action.js index 09742b8c413..05fd62d64f3 100644 --- a/app/assets/javascripts/discourse/app/helpers/route-action.js +++ b/app/assets/javascripts/discourse/app/helpers/route-action.js @@ -27,7 +27,7 @@ function getRouteWithAction(router, actionName) { return { action, handler }; } -export function routeAction(actionName, router, ...params) { +function routeAction(actionName, router, ...params) { assert("[ember-route-action-helper] Unable to lookup router", router); runInDebug(() => {