Skip to content

Commit 5566fd0

Browse files
alshakeromatticbot
authored andcommitted
Warnings: Handle missing odie-last-chat-id (#38785)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/10304805612 Upstream-Ref: Automattic/jetpack@6eba210
1 parent 539dfa1 commit 5566fd0

File tree

4 files changed

+86
-86
lines changed

4 files changed

+86
-86
lines changed

composer.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/automattic/jetpack-mu-wpcom/src/features/help-center/class-wp-rest-help-center-odie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function get_last_chat_id() {
204204

205205
$projected_response = array(
206206
'odie_chat_id' => $response->odie_chat_id,
207-
'odie_last_chat_id' => $response->odie_last_chat_id,
207+
'odie_last_chat_id' => $response->odie_last_chat_id ?? null,
208208
);
209209

210210
return rest_ensure_response( $projected_response );

0 commit comments

Comments
 (0)