Skip to content

Commit 34b53f1

Browse files
committed
refactor(layout): consoleWarn instead of error for missing layout items
1 parent f34989d commit 34b53f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vuetify/src/composables/layout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
shallowRef, toRef,
1616
useId,
1717
} from 'vue'
18-
import { convertToUnit, findChildrenWithProvide, getCurrentInstance, propsFactory } from '@/util'
18+
import { consoleWarn, convertToUnit, findChildrenWithProvide, getCurrentInstance, propsFactory } from '@/util'
1919

2020
// Types
2121
import type { ComponentInternalInstance, CSSProperties, InjectionKey, Prop, Ref } from 'vue'
@@ -301,7 +301,7 @@ export function createLayout (props: { overlaps?: string[], fullHeight?: boolean
301301

302302
const item = items.value[index.value]
303303

304-
if (!item) throw new Error(`[Vuetify] Could not find layout item "${id}"`)
304+
if (!item) consoleWarn(`[Vuetify] Could not find layout item "${id}"`)
305305

306306
const overlap = computedOverlaps.value.get(id)
307307
if (overlap) {

0 commit comments

Comments
 (0)