Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Fix frame.title #1538

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Fix frame.title #1538

merged 1 commit into from
Nov 14, 2024

Conversation

ankur22
Copy link
Collaborator

@ankur22 ankur22 commented Nov 14, 2024

What?

The fixes involves casting the value from evaluate to a string, and if that doesn't cast to a string we should return an error. The cast was missing from the earlier implementation.

Why?

Calling frame.title causes an error since the value returned from evaluate is an interface{} and not a string.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

#1539

The fixes involves casting the value from evaluate to a string, and if
that doesn't cast to a string we should return an error. The case was
missing from the earlier implementation.
@ankur22 ankur22 requested a review from a team as a code owner November 14, 2024 17:22
@ankur22 ankur22 requested review from inancgumus and joanlopez and removed request for a team November 14, 2024 17:22
@ankur22 ankur22 merged commit 77a5872 into main Nov 14, 2024
23 checks passed
@ankur22 ankur22 deleted the fix/frame-title branch November 14, 2024 18:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants