Skip to content

Unstable - Undo copy button is not working #4766

Closed

Description

@akolson

Observed behavior

When you copy a resource and try to undo the operation using the snackbar undo button on completion, the button is not responsive and throws an error in the console.

Screen.Recording.2024-09-27.at.17.45.07.mov

Expected behavior

The undo button should revert the copy.

User-facing consequences

A user is unable to undo a copy operation

Errors and logs

backend.js:5526 [Vue warn]: Error in v-on handler: "TypeError: changeTracker.revert is not a function"

found in

---> <VBtn>
       <VSnackbar>
         <GlobalSnackbar> at shared/views/GlobalSnackbar.vue
           <VApp>
             <Root>
warn @ vue.runtime.esm.js:619
logError @ vue.runtime.esm.js:1893
globalHandleError @ vue.runtime.esm.js:1888
handleError @ vue.runtime.esm.js:1848
invokeWithErrorHandling @ vue.runtime.esm.js:1871
invoker @ vue.runtime.esm.js:2188
invokeWithErrorHandling @ vue.runtime.esm.js:1863
Vue.$emit @ vue.runtime.esm.js:3903
(anonymous) @ backend.js:5526
click @ VBtn.js:75
invokeWithErrorHandling @ vue.runtime.esm.js:1863
invoker @ vue.runtime.esm.js:2188
original._wrapper @ vue.runtime.esm.js:6961
Show 12 more frames
Show lessUnderstand this error
backend.js:5526 TypeError: changeTracker.revert is not a function
    at Object.actionCallback (ContentNodeOptions.vue:374:1)
    at VueComponent.hideCallback (GlobalSnackbar.vue:48:1)
    at invokeWithErrorHandling (vue.runtime.esm.js:1863:1)
    at VueComponent.invoker (vue.runtime.esm.js:2188:1)
    at invokeWithErrorHandling (vue.runtime.esm.js:1863:1)
    at Vue.$emit (vue.runtime.esm.js:3903:1)
    at VueComponent.$emit (backend.js:5526:28)
    at VueComponent.click (VBtn.js:75:1)
    at invokeWithErrorHandling (vue.runtime.esm.js:1863:1)
    at HTMLButtonElement.invoker (vue.runtime.esm.js:2188:1)
logError @ vue.runtime.esm.js:1897
globalHandleError @ vue.runtime.esm.js:1888
handleError @ vue.runtime.esm.js:1848
invokeWithErrorHandling @ vue.runtime.esm.js:1871
invoker @ vue.runtime.esm.js:2188
invokeWithErrorHandling @ vue.runtime.esm.js:1863
Vue.$emit @ vue.runtime.esm.js:3903
(anonymous) @ backend.js:5526
click @ VBtn.js:75
invokeWithErrorHandling @ vue.runtime.esm.js:1863
invoker @ vue.runtime.esm.js:2188
original._wrapper @ vue.runtime.esm.js:6961
Show 11 more frames
Show lessUnderstand this error
ContentNodeOptions.vue:375 Uncaught (in promise) TypeError: changeTracker.cleanUp is not a function
    at ContentNodeOptions.vue:375:1
(anonymous) @ ContentNodeOptions.vue:375Understand this error
plugin.js:37 Analytics.reset()

Additional information

Steps to reproduce the issue

  1. Copy a resource
  2. Wait for it to complete copying.
  3. A snackbar with an undo will be presented.
  4. Click on the undo button and observe the behaviour

Usage Details

  • OS: Mac Os
  • Browser: Chrome
  • URL: -
  • Other information that may be relevant: -

Activity

  1. self-assigned this
    on Sep 27, 2024
  2. pcenov commented on Sep 30, 2024

    @pcenov
    Member

    Hi @akolson, I'm not able to replicate this issue in the current version of Studio so it might have been fixed already:

    undo.copy.mp4
  3. akolson commented on Sep 30, 2024

    @akolson
    MemberAuthor

    Hi @pcenov! Unfortunately I seem to replicate it consistently. I tried to clear out my cache but it just doesn't seem to work even on unstable. I'm picking up the same errors too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions