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,
|
||||
);
|
||||
|
||||
if (!fileExists) {
|
||||
new Notice(`That file's size has already been entered,
|
||||
remove it first to change weight.`);
|
||||
if (fileExists) {
|
||||
new Notice(
|
||||
"That file's size has already been entered," +
|
||||
" remove it first to change weight.",
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue