Skip to content

Commit

Permalink
fix: don't try to access non-existing wrappers (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomosterlund authored Jun 11, 2024
1 parent 708b401 commit 1ab24e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", ":disableDependencyDashboard"],
"extends": ["config:base", ":disableDependencyDashboard", ":semanticCommits"],
"packageRules": [
{
"matchDepTypes": ["devDependencies"],
Expand All @@ -10,7 +10,8 @@
},
{
"groupName": "Schedule-X monorepo packages",
"packagePatterns": ["^@schedule-x.*"]
"packagePatterns": ["^@schedule-x.*"],
"automerge": true
}
],
"ignoreDeps": ["vue"],
Expand Down
3 changes: 3 additions & 0 deletions src/schedule-x-calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export default defineComponent({

methods: {
setCustomComponentMeta(component: CustomComponentMeta) {
const wrapperWasDetached = !(component.wrapperElement instanceof HTMLElement);
if (wrapperWasDetached) return

const filterOutComponentsWithDetachedWrappers = ({ wrapperElement }: { wrapperElement: HTMLElement | null }) =>
wrapperElement instanceof HTMLElement
const newCustomComponents = [
Expand Down

0 comments on commit 1ab24e6

Please sign in to comment.