Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
盖剑秋
9 years ago
Commit
9def628b3623d94059d570fd45d5ff92dc4313c7
1 parent
2cb27686
Fix crash caused by reply image. reivewed by redding.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
js/community/components/posting/Posting.js
js/community/components/subjectPost/SubjectPost.js
js/community/components/posting/Posting.js
View file @
9def628
...
...
@@ -217,12 +217,13 @@ export default class Posting extends Component {
<
View
style
=
{
styles
.
toolTopLine
}
/
>
<
View
style
=
{
styles
.
toolBottomLine
}
/
>
<
/View
>
<
AssertsPicker
{
this
.
state
.
imageState
==
0
?
null
:
<
AssertsPicker
style
=
{[
styles
.
boardSelectionContainer
,{
height
:
this
.
state
.
imageState
,}]}
opacityToHide
=
{
this
.
state
.
imageState
}
assets
=
{
this
.
props
.
assets
}
assetsSelected
=
{
this
.
props
.
assetsSelected
}
/
>
/>
}
<
View
style
=
{[
styles
.
boardSelectionContainer
,{
height
:
this
.
state
.
boardState
,}]}
opacity
=
{
this
.
state
.
boardState
}
>
<
View
style
=
{
styles
.
boardSelectionScroll
}
>
...
...
js/community/components/subjectPost/SubjectPost.js
View file @
9def628
...
...
@@ -320,9 +320,11 @@ export default class SubjectPost extends Component {
"orderBy"
:
1
,
};
blocks
.
push
(
textBlock
);
console
.
log
(
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
);
console
.
log
(
this
.
props
.
assets
);
if
(
this
.
props
.
assets
.
length
)
{
for
(
var
i
=
0
;
i
<
assets
.
length
;
i
++
)
{
let
asset
=
assets
[
i
];
for
(
var
i
=
0
;
i
<
this
.
props
.
assets
.
length
;
i
++
)
{
let
asset
=
this
.
props
.
assets
[
i
];
let
imgBlock
=
{
"contentData"
:
asset
.
url
,
"templateKey"
:
"image"
,
...
...
Please
register
or
login
to post a comment