Skip to content

Commit 3d36061

Browse files
committed
Merge branch 'main' of github.com:jacksleight/statamic-miniset
2 parents e0317bc + 2f272ee commit 3d36061

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Changelog
22

3-
## 1.1.1 (2024-05-07)
3+
## 1.1.2 (2024-05-07)
44

55
- Statamic 5 support
66

7+
## 1.1.1 (2024-02-05)
8+
9+
* [fix] Type error when variants config is null by @caseydwyer in https://github.com/jacksleight/statamic-miniset/pull/7
10+
711
## 1.1.0 (2024-02-02)
812

913
* [new] Allow HTML in buttons/tabs by @caseydwyer in https://github.com/jacksleight/statamic-miniset/pull/5

src/Fieldtypes/MinisetClassesFieldtype.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function preload()
135135
'existing' => collect($this->field->value())->mapWithKeys(function ($group) {
136136
return [$group['_id'] => $this->fields()->addValues($group)->meta()];
137137
})->toArray(),
138-
'variant_indexes' => array_flip(array_keys($this->config('variants'))),
138+
'variant_indexes' => array_flip(array_keys($this->config('variants') ?? [])),
139139
];
140140
}
141141

0 commit comments

Comments
 (0)