Commit 5ad1cc22 authored by Phil Hughes's avatar Phil Hughes

Updated path variable name

parent 6ccbdee5
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
}, },
methods: { methods: {
fetchFiles() { fetchFiles() {
const path = this.path || '/'; const originalPath = this.path || '/';
this.isLoadingFiles = true; this.isLoadingFiles = true;
return this.$apollo return this.$apollo
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
}) })
.then(({ data }) => { .then(({ data }) => {
if (data.errors) throw data.errors; if (data.errors) throw data.errors;
if (!data?.project?.repository || path !== (this.path || '/')) return; if (!data?.project?.repository || originalPath !== (this.path || '/')) return;
const pageInfo = this.hasNextPage(data.project.repository.tree); const pageInfo = this.hasNextPage(data.project.repository.tree);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment