mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 08:43:50 +02:00
use oxfmt instead of prettier
This commit is contained in:
@@ -426,12 +426,7 @@
|
||||
if (byId) return byId;
|
||||
}
|
||||
|
||||
if (
|
||||
allowIndexFallback &&
|
||||
typeof entity.index === 'number' &&
|
||||
entity.index >= 0 &&
|
||||
entity.index < nodes.length
|
||||
) {
|
||||
if (allowIndexFallback && typeof entity.index === 'number' && entity.index >= 0 && entity.index < nodes.length) {
|
||||
return nodes[entity.index] || null;
|
||||
}
|
||||
|
||||
@@ -620,8 +615,7 @@
|
||||
const sourceNode =
|
||||
(sourceIdSnapshot
|
||||
? visibleNodes.find(
|
||||
(node) =>
|
||||
node.id === sourceIdSnapshot && node.type === (sourceIsFolderSnapshot ? 'folder' : 'item')
|
||||
(node) => node.id === sourceIdSnapshot && node.type === (sourceIsFolderSnapshot ? 'folder' : 'item')
|
||||
)
|
||||
: null) || resolveNodeFromDnDEntity(source, visibleNodes);
|
||||
if (!sourceNode) return;
|
||||
|
||||
Reference in New Issue
Block a user