mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Remove unnecessary test in file-renaming code
Regular items are by definition top-level items
This commit is contained in:
parent
689e59f161
commit
87bb7d17b2
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ export function registerAutoRenameFileFromParent() {
|
|||
}
|
||||
|
||||
const parentItem = await Zotero.Items.getAsync(id);
|
||||
if (!parentItem.isTopLevelItem() || !parentItem.isRegularItem()) {
|
||||
if (!parentItem.isRegularItem()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue