fix: add fallback for vendors array in content page editor

Use (vendors || []) to prevent undefined iteration error in Alpine.js.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-28 20:52:30 +01:00
parent 2948d1b559
commit db4c255178

View File

@@ -93,7 +93,7 @@
:disabled="loadingVendors"
>
<option :value="null">Platform Default</option>
<template x-for="vendor in vendors" :key="vendor.id">
<template x-for="vendor in (vendors || [])" :key="vendor.id">
<option :value="vendor.id" x-text="vendor.name"></option>
</template>
</select>