Skip to content

Commit 5cf14f0

Browse files
committed
fix blocks and layouts with no query for 0.3.0
1 parent e4518c4 commit 5cf14f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "rasteiner/k3-whenquery",
33
"description": "Conditionally show fields and sections. Better.",
44
"type": "kirby-plugin",
5-
"version": "0.3.0",
5+
"version": "0.3.1",
66
"license": "MIT",
77
"homepage": "https://getkirby.com/plugins/rasteiner/k3-whenquery",
88
"authors": [

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class QueryBlocksField extends BlocksField
99
{
10-
protected string $whenQuery;
10+
protected ?string $whenQuery;
1111

1212
public function __construct($params)
1313
{
@@ -40,7 +40,7 @@ public function type(): string
4040

4141
class QueryLayoutField extends LayoutField
4242
{
43-
protected string $whenQuery;
43+
protected ?string $whenQuery;
4444

4545
public function __construct($props)
4646
{

0 commit comments

Comments
 (0)