Skip to content

Commit 8ca14b6

Browse files
authored
fix object permissions delete (#4607)
1 parent 560c92b commit 8ca14b6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

frontend/app/src/components/modals/modal-delete-object.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { datetimeAtom } from "@/state/atoms/time.atom";
66
import { stringifyWithoutQuotes } from "@/utils/string";
77
import { gql } from "@apollo/client";
88
import { useAtomValue } from "jotai";
9-
import React, { Fragment, useState } from "react";
9+
import { useState } from "react";
1010
import { useParams } from "react-router-dom";
1111
import { toast } from "react-toastify";
1212
import { ALERT_TYPES, Alert } from "../ui/alert";

frontend/app/src/screens/role-management/object-permissions.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Permissions() {
4747

4848
const columns = [
4949
{
50-
name: "display_label",
50+
name: "display",
5151
label: "Name",
5252
},
5353
{
@@ -89,11 +89,12 @@ function Permissions() {
8989
return {
9090
values: {
9191
id: edge?.node?.id,
92-
display_label: {
93-
value: edge?.node?.display_value,
92+
display_label: edge?.node?.display_label,
93+
display: {
94+
value: edge?.node?.display_label,
9495
display: (
9596
<div className="flex items-center gap-2">
96-
{icon} {edge?.node?.display_value}
97+
{icon} {edge?.node?.display_label}
9798
</div>
9899
),
99100
},

0 commit comments

Comments
 (0)