fix: logical error

This commit is contained in:
Kritagya Bhattarai (CalfMoon) 2026-03-30 22:25:14 +05:45
parent 9d2b9769c4
commit f23e337178

View file

@ -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;
} }