utchoang commented on a change in pull request #5219:
URL: https://github.com/apache/cloudstack/pull/5219#discussion_r678813114



##########
File path: ui/src/utils/plugins.js
##########
@@ -90,7 +90,7 @@ export const pollJobPlugin = {
 
           // Ensure we refresh on the same / parent page
           const currentPage = this.$router.currentRoute.path
-          const samePage = originalPage === currentPage || 
originalPage.startsWith(currentPage + '/')
+          const samePage = options.originalPage === currentPage || 
options.originalPage.startsWith(currentPage + '/')

Review comment:
       @davidjumani If I don't set the originalPage it will be null, when I run 
the test, I get the following error. It seems that `options.originalPage = 
options.originalPage || this.$router.currentRoute.path` it doesn't override 
originalPage
   
![image](https://user-images.githubusercontent.com/13766648/127431402-68eab928-8d0d-4a49-b9ca-d5dbf352c6c9.png)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to