webbingbrasil/filament-copyactions

Undefined variable `$success` after upgrading to 1.1.1

Closed this issue · 0 comments

Describe the bug
After upgrading to 1.1.1 version, I got an error Undefined variable $success

After checking the file history, it seems this commit that leads to this errors.

@if ($icon && $iconPosition === 'before')
<x-filament-copyactions::copy-button
:success="$copyMessage"
:content="$copyableText"
:iconColor="$iconColor"
:icon="$icon" />
@endif

@if ($icon && $iconPosition === 'after')
<x-filament-copyactions::copy-button
:success="$success"
:content="$copyableText"
:iconColor="$iconColor"
:icon="$icon" />
@endif

To Reproduce
Steps to reproduce the behavior:

  1. Implement CopyableTextColumn component on a resource
  2. Open the resource index page, and you will see the error

Expected behavior
There is no error