Skip to content

Commit

Permalink
Job component - Change page to 1 on mount navigation to avoid sideffe…
Browse files Browse the repository at this point in the history
…ct on remount for another deployment or edge bugfix (#1580)
  • Loading branch information
0xbase12 authored Jun 5, 2024
1 parent 8473cee commit 7449780
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns sixsq.nuvla.ui.common-components.job.views
(:require [clojure.string :as str]
[re-frame.core :refer [subscribe]]
[re-frame.core :refer [subscribe dispatch]]
[reagent.core :as r]
[sixsq.nuvla.ui.common-components.i18n.subs :as i18n-subs]
[sixsq.nuvla.ui.common-components.job.events :as events]
Expand Down Expand Up @@ -45,6 +45,7 @@

(defn JobsTable
[_jobs]
(dispatch [::pagination-plugin/change-page [::spec/pagination] 1])
(fn [{:keys [resources] :as jobs-data}]
(let [{jobs-count :count} jobs-data]
(if (empty? resources)
Expand Down

0 comments on commit 7449780

Please sign in to comment.