@@ -5,6 +5,7 @@ import {
|
|||||||
usePreloadedQuery,
|
usePreloadedQuery,
|
||||||
useQueryLoader,
|
useQueryLoader,
|
||||||
useMutation,
|
useMutation,
|
||||||
|
ConnectionHandler,
|
||||||
} from "react-relay";
|
} from "react-relay";
|
||||||
import { useParams, useNavigate, Link } from "react-router";
|
import { useParams, useNavigate, Link } from "react-router";
|
||||||
import { Badge } from "@/components/ui/badge";
|
import { Badge } from "@/components/ui/badge";
|
||||||
@@ -31,7 +32,6 @@ const mitigationListViewQuery = graphql`
|
|||||||
... on Organization {
|
... on Organization {
|
||||||
mitigations(first: $first)
|
mitigations(first: $first)
|
||||||
@connection(key: "MitigationListView_mitigations") {
|
@connection(key: "MitigationListView_mitigations") {
|
||||||
__id
|
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
@@ -289,7 +289,12 @@ function MitigationListContent({
|
|||||||
|
|
||||||
importMitigation({
|
importMitigation({
|
||||||
variables: {
|
variables: {
|
||||||
connections: [data.organization.mitigations.__id],
|
connections: [
|
||||||
|
ConnectionHandler.getConnectionID(
|
||||||
|
data.organization.id,
|
||||||
|
"MitigationListView_mitigations"
|
||||||
|
),
|
||||||
|
],
|
||||||
input: {
|
input: {
|
||||||
organizationId: organizationId!,
|
organizationId: organizationId!,
|
||||||
file: null,
|
file: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user