fix: rewrite the label manager to no longer use useRef
useRef was causing a `readonly` error when trying to overwrite `ref.current`. Rewrote components to use an Apollo query instead. fixes #121
This commit is contained in:
File diff suppressed because it is too large
Load Diff
26
frontend/src/shared/graphql/labels.ts
Normal file
26
frontend/src/shared/graphql/labels.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user