Skip to content

Conversation

johnsimons
Copy link
Member

No description provided.

@johnsimons johnsimons requested a review from PhilBastian April 10, 2025 02:45
@johnsimons johnsimons self-assigned this Apr 10, 2025
function initializeMessageBodyAndHeaders() {
function getHeaderValue(key: string) {
const header = local.headers.find((header: HeaderWithEditing) => header.key === key);
Copy link
Contributor

Choose a reason for hiding this comment

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

i realise this works because of hoisting, but this function is declared before local is.

Suggested change
const header = local.headers.find((header: HeaderWithEditing) => header.key === key);
const header = headers.value.find((header: HeaderWithEditing) => header.key === key);

@johnsimons johnsimons merged commit 7b8c69d into master Apr 10, 2025
5 checks passed
@johnsimons johnsimons deleted the john/edit-retryfix branch April 10, 2025 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants