mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
This commit is contained in:
parent
e784d52689
commit
8092c0f3e5
|
|
@ -680,14 +680,21 @@ export const updateIconPositions = (
|
|||
);
|
||||
const newIconPositions = Object.fromEntries(
|
||||
Object.entries(adjustIconPositions).filter(
|
||||
([, { gridColumnStart, gridRowStart }]) =>
|
||||
!Object.values(updatedIconPositions).some(
|
||||
({
|
||||
gridColumnStart: currentGridColumnStart,
|
||||
gridRowStart: currentRowColumnStart,
|
||||
}) =>
|
||||
gridColumnStart === currentGridColumnStart &&
|
||||
gridRowStart === currentRowColumnStart
|
||||
([entryFile, { gridColumnStart, gridRowStart }]) =>
|
||||
!Object.entries({
|
||||
...updatedIconPositions,
|
||||
...adjustIconPositions,
|
||||
}).some(
|
||||
([
|
||||
compareEntryFile,
|
||||
{
|
||||
gridColumnStart: compareGridColumnStart,
|
||||
gridRowStart: compareGridRowStart,
|
||||
},
|
||||
]) =>
|
||||
entryFile !== compareEntryFile &&
|
||||
gridColumnStart === compareGridColumnStart &&
|
||||
gridRowStart === compareGridRowStart
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user