Skip to content
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

Fix console error in list-prs-for-file #3946

Merged
merged 4 commits into from Feb 5, 2021
Merged

Fix console error in list-prs-for-file #3946

merged 4 commits into from Feb 5, 2021

Conversation

yakov116
Copy link
Member

@yakov116 yakov116 commented Feb 5, 2021

Looks like I missed testing when there are no prs

@yakov116 yakov116 added the bug label Feb 5, 2021
@@ -94,7 +94,7 @@ async function showTimemachineBar(): Promise<void | false> {
const lastCommitDate = await elementReady([
'.repository-content .Box.Box--condensed relative-time',
'[itemprop="dateModified"] relative-time' // "Repository refresh" layout
].join(), {waitForChildren: false});
].join());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think this is correct, we only use the attribute, not the children

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also if you want to drop all pre-refresh code you can do so in a new PR, as long as no other changes are done in the same PR, because they’d be lost.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think this is correct, we only use the attribute, not the children

Going to skip this for now as I don't have time to debug.

Also if you want to drop all pre-refresh code you can do so in a new PR, as long as no other changes are done in the same PR, because they’d be lost.

Sure

@yakov116 yakov116 changed the title Meta: Small fixes Fix console error in list-prs-for-file Feb 5, 2021
Copy link
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@yakov116 yakov116 merged commit c6f9d2d into main Feb 5, 2021
@yakov116 yakov116 deleted the small_fixes branch February 5, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants