Skip to content

Conversation

@theKastle
Copy link
Contributor

…d ext when they are undefined.

When code block is set in dockerfile language mode, properties mimes and ext are undefined so I add optional chaining when accessing their element.

screen-shot-mode-info-obj
cannot-read-property-0-of-undefined

@CLAassistant
Copy link

CLAassistant commented Feb 8, 2021

CLA assistant check
All committers have signed the CLA.

@theKastle theKastle force-pushed the fix-undefined-code-mirror-language-mimes-ext branch from 916ee1e to 52139af Compare February 8, 2021 13:24
@theKastle theKastle changed the title fix(markdown-code-block-lang-mode): Fix accessing element of mimes an… fix(markdown-code-block-lang-mode): Fix accessing element of mimes and ext when they are undefined. Feb 8, 2021
@Rokt33r
Copy link
Member

Rokt33r commented Feb 24, 2021

@theKastle Thanks for submitting this pr. I didn't expect that none of them are available. I'll test a bit more and try to make it a bit better.

@Rokt33r
Copy link
Member

Rokt33r commented Feb 24, 2021

LGTM! Thanks!

@Rokt33r Rokt33r merged commit 1d8e3c5 into BoostIO:master Feb 24, 2021
@Rokt33r Rokt33r added this to the v0.14.0 milestone Feb 24, 2021
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.

3 participants