Skip to content

Commit 948580f

Browse files
committed
skip commit for empty action config
1 parent f3fd94d commit 948580f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Service/Action/Committer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ public function __construct(
3838
) {
3939
}
4040

41-
public function commit(int $actionId, string $config, UserContext $context): void
41+
public function commit(int $actionId, ?string $config, UserContext $context): void
4242
{
43+
if (empty($config)) {
44+
return;
45+
}
46+
4347
$previousHash = $this->actionCommitTable->findPreviousHash($actionId);
4448

4549
$now = LocalDateTime::now();

0 commit comments

Comments
 (0)