mirror of
https://github.com/calfmoon/node-factor.git
synced 2026-07-22 05:42:24 +00:00
fix: logical error
This commit is contained in:
parent
9d2b9769c4
commit
f23e337178
1 changed files with 5 additions and 3 deletions
|
|
@ -129,9 +129,11 @@ export default class NodeFactorSettingTab extends PluginSettingTab {
|
||||||
(foundFile) => foundFile.id == enteredFileData.id,
|
(foundFile) => foundFile.id == enteredFileData.id,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!fileExists) {
|
if (fileExists) {
|
||||||
new Notice(`That file's size has already been entered,
|
new Notice(
|
||||||
remove it first to change weight.`);
|
"That file's size has already been entered," +
|
||||||
|
" remove it first to change weight.",
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue