diff --git a/.changeset/perfect-geese-attend.md b/.changeset/perfect-geese-attend.md new file mode 100644 index 00000000000..516d88cab0a --- /dev/null +++ b/.changeset/perfect-geese-attend.md @@ -0,0 +1,5 @@ +--- +"@wso2is/admin.groups.v1": patch +--- + +Fix the issue of displaying group created time for the last modified in the group list view diff --git a/features/admin.groups.v1/components/group-list.tsx b/features/admin.groups.v1/components/group-list.tsx index e56c3b77a5d..83f0685551b 100644 --- a/features/admin.groups.v1/components/group-list.tsx +++ b/features/admin.groups.v1/components/group-list.tsx @@ -315,7 +315,10 @@ export const GroupList: React.FunctionComponent = (props: GroupL key: "lastModified", render: (group: GroupsInterface): ReactNode => { const now: Moment = moment(new Date()); - const receivedDate: Moment = moment(group.meta.created); + const receivedDate: Moment = moment(group.meta.lastModified ? + group.meta.lastModified : + group.meta.created + ); return t("console:common.dateTime.humanizedDateString", { date: moment.duration(now.diff(receivedDate)).humanize()