detect if player has mending on elytra

Im not completly sure if this is because of the new nbt structure (probably is because it doesnt work), but does anyone know why this isn't actually detecting if any player has a mending elytra in their inventory? execute as @a[nbt={Inventory:[{id:"minecraft:elytra",tag:{enchantments:{mending:1}}}]}] run say a player has mending
Continue to help post