Skip to content

Commit ff5cfab

Browse files
committed
fallback to empty object for the test
1 parent ef1655b commit ff5cfab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/components/fieldtypes/fieldtype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import toFieldActions from '@/components/field-actions/toFieldActions.js';
88
import { injectPublishContext } from "@ui";
99

1010
const use = function(emit, props) {
11-
const { container } = injectPublishContext();
11+
const { container } = injectPublishContext() ?? {};
1212

1313
const name = computed(() => {
1414
if (props.namePrefix) {

0 commit comments

Comments
 (0)