Rename MessageEditHistoryQuery

This commit is contained in:
Sascha 2021-03-19 14:25:42 +01:00
parent 155b37e81f
commit dfb039a936
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#import "./MessageCommentFragment.graphql"
#import "./MessageCreateFragment.graphql"
query MessageEditHistory($bugIdPrefix: String!) {
query MessageHistory($bugIdPrefix: String!) {
repository {
bug(prefix: $bugIdPrefix) {
timeline {

View File

@ -23,7 +23,7 @@ import CloseIcon from '@material-ui/icons/Close';
import { AddCommentFragment } from './MessageCommentFragment.generated';
import { CreateFragment } from './MessageCreateFragment.generated';
import { useMessageEditHistoryQuery } from './MessageEditHistory.generated';
import { useMessageHistoryQuery } from './MessageHistory.generated';
const styles = (theme: Theme) =>
createStyles({
@ -120,7 +120,7 @@ type Props = {
function MessageHistoryDialog({ bugId, commentId, open, onClose }: Props) {
const [expanded, setExpanded] = React.useState<string | false>('panel0');
const { loading, error, data } = useMessageEditHistoryQuery({
const { loading, error, data } = useMessageHistoryQuery({
variables: { bugIdPrefix: bugId },
});
if (loading) {