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 CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. For commit
## v1.3.6

**BugFixes**:
- file watcher not working for files (#2314)
- file watcher not working for files and not respecting line count (#2314)
- "source" type link shows up multiple times when adding sidebar links if user has multiple sources.
- JWT ES256 results in error (#2188)

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/api/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export async function fileWatcherLatencyCheck() {
}

// GET /api/tools/fileWatcher
export async function fileWatcher(source, path) {
export async function fileWatcher(source, path, lines) {
try {
const params = { source, path };
const params = { source, path, lines: lines };
const apiPath = getApiPath("tools/fileWatcher", params);
const res = await fetchURL(apiPath);
return await res.json();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/tools/FileWatcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ export default {
async fetchFileContent() {
const startTime = Date.now();
try {
const data = await toolsApi.fileWatcher(this.selectedSource, this.filePath);
const data = await toolsApi.fileWatcher(this.selectedSource, this.filePath, this.selectedLines);

const latency = Date.now() - startTime;
this.currentLatency = latency;
Expand Down
Loading