diff --git a/src/resources/manila/share-group-type.jsx b/src/resources/manila/share-group-type.jsx index 62766c91..d7027990 100644 --- a/src/resources/manila/share-group-type.jsx +++ b/src/resources/manila/share-group-type.jsx @@ -17,6 +17,9 @@ export const shareGroupTypeColumns = [ render: (value) => { return (value || []).map((it) =>
{it.name}
); }, + stringify: (value) => { + return (value || []).map((it) => it.name).join(';') || '-'; + }, }, ]; diff --git a/src/stores/manila/share-group.js b/src/stores/manila/share-group.js index 9cc85946..9f778e83 100644 --- a/src/stores/manila/share-group.js +++ b/src/stores/manila/share-group.js @@ -30,10 +30,11 @@ export class ShareGroupStore extends Base { get paramsFuncPage() { return (params) => { const { all_projects, current, keywords, ...rest } = params; - return { - ...rest, - all_tenants: all_projects ? 1 : 0, - }; + const newParams = { ...rest }; + if (all_projects) { + newParams.all_tenants = 1; + } + return newParams; }; }