Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Mar 29, 2023
1 parent 803f36d commit b18de99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/status_im2/contexts/chat/lightbox/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
[status-im2.contexts.chat.lightbox.top-view :as top-view]
[status-im2.contexts.chat.lightbox.bottom-view :as bottom-view]
[utils.worklets.lightbox :as worklet]
[status-im.utils.utils :as utils]
[oops.core :refer [oget]]))

(def ^:const seperator-width 16)
Expand Down Expand Up @@ -131,7 +130,7 @@
;; The initial value of data is the image that was pressed (and not the whole album) in order
;; for the transition animation to execute properly, otherwise it would animate towards
;; outside the screen (even if we have `initialScrollIndex` set).
data (reagent/atom [(utils/safe-nth messages index)])
data (reagent/atom (if (number? index) [(nth messages index)] []))
scroll-index (reagent/atom index)
transparent? (reagent/atom false)
set-full-height? (reagent/atom false)
Expand Down

0 comments on commit b18de99

Please # to comment.