@@ -12,6 +12,7 @@
|
|||||||
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
// PERFORMANCE OF THIS SOFTWARE.
|
// PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
import type { ComponentProps } from "react";
|
||||||
import { graphql, useRefetchableFragment } from "react-relay";
|
import { graphql, useRefetchableFragment } from "react-relay";
|
||||||
import { useOutletContext, useParams } from "react-router";
|
import { useOutletContext, useParams } from "react-router";
|
||||||
|
|
||||||
@@ -122,7 +123,7 @@ export default function MeasureControlsTab() {
|
|||||||
return (
|
return (
|
||||||
<LinkedControlsCard
|
<LinkedControlsCard
|
||||||
disabled={isLoading}
|
disabled={isLoading}
|
||||||
controls={controls}
|
controls={controls as ComponentProps<typeof LinkedControlsCard>["controls"]}
|
||||||
onDetach={detachControl}
|
onDetach={detachControl}
|
||||||
onAttach={attachControl}
|
onAttach={attachControl}
|
||||||
params={{ measureId }}
|
params={{ measureId }}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ const tasksQuery = graphql`
|
|||||||
node(id: $measureId) @required(action: THROW) {
|
node(id: $measureId) @required(action: THROW) {
|
||||||
__typename
|
__typename
|
||||||
... on Measure {
|
... on Measure {
|
||||||
id
|
|
||||||
canCreateTask: permission(action: "core:task:create")
|
canCreateTask: permission(action: "core:task:create")
|
||||||
tasks(first: 100, orderBy: { field: PRIORITY_RANK, direction: ASC })
|
tasks(first: 100, orderBy: { field: PRIORITY_RANK, direction: ASC })
|
||||||
@connection(key: "Measure__tasks")
|
@connection(key: "Measure__tasks")
|
||||||
|
|||||||
Reference in New Issue
Block a user