Fix live operator source watcher
This commit is contained in:
parent
b53abf52f5
commit
510cdf1d2c
2 changed files with 25 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ async function readSwarmOperatorInputs(paths) {
|
|||
}
|
||||
|
||||
function watchSwarmOperatorInputs(paths, onChange, { debounceMs = 75 } = {}) {
|
||||
const watched = [...new Set(Object.values(paths).map(pathModule.resolve))];
|
||||
const watched = [...new Set(Object.values(paths).map((value) => pathModule.resolve(value)))];
|
||||
const byDirectory = new Map();
|
||||
for (const path of watched) {
|
||||
const directory = pathModule.dirname(path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue