Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

Commit f4a791d

Browse files
Merge pull request #9 from Divi/select-init-set
Thanks @Divi
2 parents 5405f0f + 80c7c5f commit f4a791d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Notion/Properties/Select.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ public function value()
1111

1212
public function set($value): void
1313
{
14+
if (!isset($this->config->select)) {
15+
$this->config->select = (object) [];
16+
}
17+
1418
$this->config->select->name = $value;
1519
unset($this->config->select->id, $this->config->select->color);
1620
}

0 commit comments

Comments
 (0)