From db2946d36004639a363410a0ca3834ea004cf8a0 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 15 Oct 2020 20:10:06 +0200 Subject: [PATCH] url now takes the same format as in other components --- packages/standard-components/src/DataGrid/Component.svelte | 1 + packages/standard-components/src/DataGrid/customRenderer.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/standard-components/src/DataGrid/Component.svelte b/packages/standard-components/src/DataGrid/Component.svelte index 13d52fd0a6..e3fc02c74e 100644 --- a/packages/standard-components/src/DataGrid/Component.svelte +++ b/packages/standard-components/src/DataGrid/Component.svelte @@ -82,6 +82,7 @@ width: 25, flex: 0, editable: false, + sortable: false, cellRenderer: getRenderer({ type: '_id', options: detailUrl diff --git a/packages/standard-components/src/DataGrid/customRenderer.js b/packages/standard-components/src/DataGrid/customRenderer.js index d90b5c491e..aca4e7d39e 100644 --- a/packages/standard-components/src/DataGrid/customRenderer.js +++ b/packages/standard-components/src/DataGrid/customRenderer.js @@ -143,7 +143,7 @@ function viewDetailsRenderer(options) { new ViewDetails({ target: container, props: { - url: `/${options}/${params.data._id}`, + url: `${options}/${params.data._id}`, }, })