mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 17:29:14 +00:00
Compare commits
2 Commits
fix-null-s
...
wide-tootb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d7de06db4 | ||
|
|
26f08f0791 |
@@ -102,16 +102,6 @@ const makeMapStateToProps = () => {
|
|||||||
const mapStateToProps = (state, ownProps) => {
|
const mapStateToProps = (state, ownProps) => {
|
||||||
|
|
||||||
let status = getStatus(state, ownProps.id);
|
let status = getStatus(state, ownProps.id);
|
||||||
|
|
||||||
if(status === null) {
|
|
||||||
console.error(`ERROR! NULL STATUS! ${ownProps.id}`);
|
|
||||||
// work-around: find first good status
|
|
||||||
for (let k of state.get('statuses').keys()) {
|
|
||||||
status = getStatus(state, k);
|
|
||||||
if (status !== null) break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let reblogStatus = status.get('reblog', null);
|
let reblogStatus = status.get('reblog', null);
|
||||||
let account = undefined;
|
let account = undefined;
|
||||||
let prepend = undefined;
|
let prepend = undefined;
|
||||||
|
|||||||
@@ -247,7 +247,6 @@ export default class ComposeForm extends ImmutablePureComponent {
|
|||||||
<UploadFormContainer />
|
<UploadFormContainer />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='compose-form__buttons-wrapper'>
|
|
||||||
<div className='compose-form__buttons'>
|
<div className='compose-form__buttons'>
|
||||||
<UploadButtonContainer />
|
<UploadButtonContainer />
|
||||||
<DoodleButtonContainer />
|
<DoodleButtonContainer />
|
||||||
@@ -279,7 +278,6 @@ export default class ComposeForm extends ImmutablePureComponent {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -302,7 +302,6 @@
|
|||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background: $simple-background-color;
|
background: $simple-background-color;
|
||||||
border-radius: 0 0 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.compose-form__buttons-wrapper {
|
.compose-form__buttons-wrapper {
|
||||||
@@ -452,6 +451,7 @@
|
|||||||
|
|
||||||
.compose-form__publish {
|
.compose-form__publish {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user