Skip to content

Commit df01063

Browse files
committed
Fix issue mvc refreshing order list
1 parent 25c752c commit df01063

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Web/WebMVC/Views/Shared/_Layout.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
function registerNotificationHandlers(connection) {
119119
connection.on("UpdatedOrderState", (message) => {
120120
toastr.success('Updated to status: ' + message.status, 'Order Id: ' + message.orderId);
121-
if (window.location.pathname === '/Order') {
121+
if (window.location.pathname.split("/").pop() === 'Order') {
122122
refreshOrderList();
123123
}
124124
});
@@ -132,7 +132,7 @@
132132
clearTimeout(timerId);
133133
timerId = setTimeout(function () {
134134
window.location.reload();
135-
}, 5000);
135+
}, 1000);
136136
}
137137
</script>
138138
</body>

0 commit comments

Comments
 (0)