Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion static/js/publisher/pages/Builds/Builds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Builds(): React.JSX.Element {
const [repoConnected, setRepoConnected] = useAtom(buildRepoConnectedState);
const [autoTriggerBuild, setAutoTriggerBuild] = useState<boolean>(false);
const { isLoading } = useQuery({
queryKey: ["githubData"],
queryKey: ["githubData", snapId],
queryFn: async () => {
const response = await fetch(`/api/${snapId}/repo`);

Expand Down
2 changes: 1 addition & 1 deletion static/js/publisher/pages/Builds/RepoConnected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function RepoConnected({
useState<boolean>(false);
const [triggeringBuild, setTriggeringBuild] = useState<boolean>(false);
const { isLoading, isFetched, data, refetch } = useQuery({
queryKey: ["repo"],
queryKey: ["repo", snapId],
queryFn: async () => {
const response = await fetch(`/api/${snapId}/builds`);
const data = await response.json();
Expand Down
2 changes: 1 addition & 1 deletion static/js/publisher/pages/Listing/Listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { setPageTitle } from "../../utils";
function Listing(): React.JSX.Element {
const { snapId } = useParams();
const { data, isLoading, refetch, status } = useQuery({
queryKey: ["listing"],
queryKey: ["listing", snapId],
queryFn: async () => {
const response = await fetch(`/api/${snapId}/listing`);

Expand Down
2 changes: 1 addition & 1 deletion static/js/publisher/pages/Publicise/Publicise.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Publicise({ view }: Props): React.JSX.Element {
const { snapId } = useParams();

const { data, isLoading, isFetched } = useQuery({
queryKey: ["publiciseData"],
queryKey: ["publiciseData", snapId],
queryFn: async () => {
const response = await fetch(`/api/${snapId}/publicise`);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { setPageTitle } from "../../utils";
function PublisherSettings() {
const { snapId } = useParams();
const { data, isLoading, isFetched } = useQuery({
queryKey: ["settingsData"],
queryKey: ["settingsData", snapId],
queryFn: async () => {
const response = await fetch(`/api/${snapId}/settings`);

Expand Down
2 changes: 1 addition & 1 deletion static/js/publisher/pages/Releases/Releases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { setPageTitle } from "../../utils";
function Releases(): React.JSX.Element {
const { snapId } = useParams();
const { isLoading, isFetched, data } = useQuery({
queryKey: ["releases"],
queryKey: ["releases", snapId],
queryFn: async () => {
const response = await fetch(`/api/${snapId}/releases`);

Expand Down