Skip to content

Unstable - Undo copy button is not working #4766

@akolson

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: -

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions