-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary view.js
file from navigation-submenu block
#44570
Remove unnecessary view.js
file from navigation-submenu block
#44570
Conversation
Size Change: -423 B (0%) Total Size: 1.26 MB
ℹ️ View Unchanged
|
It looks like it was removed from the block.json in #34675, so I think it's ok to delete this file. Would be good to get a confirmation/approval from @tellthemachines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR! Yes, I somehow forgot to delete the old file in #34675 😳
view.js
file from navigation-submenu blockview.js
file from navigation-submenu block
What?
If I am not mistaken, the current
view.js
file in the navigation-submenu block is not being used. It isn't defined in the block.json (there is no viewScript field) and, if I add a submenu in the navigation block, it doesn't seem to load that view.js file in the browser.Apart from that, it seems the navigation block view.js file is doing mostly the same and seems a bit more up-to-date. This one is loaded in the browser.
Why?
If it is not being used, it is better to remove unnecessary code.
How?
I just removed the mentioned file.
Testing Instructions
navigation
block.