useRef was causing a `readonly` error when trying to overwrite `ref.current`. Rewrote components to use an Apollo query instead. fixes #121
27 lines
449 B
TypeScript
27 lines
449 B
TypeScript
import gql from 'graphql-tag';
|
|
import TASK_FRAGMENT from './fragments/task';
|
|
|
|
const FIND_PROJECT_QUERY = gql`
|
|
query labels($projectID: UUID!) {
|
|
findProject(input: { projectID: $projectID }) {
|
|
labels {
|
|
id
|
|
createdDate
|
|
name
|
|
labelColor {
|
|
id
|
|
name
|
|
colorHex
|
|
position
|
|
}
|
|
}
|
|
}
|
|
labelColors {
|
|
id
|
|
position
|
|
colorHex
|
|
name
|
|
}
|
|
}
|
|
`;
|