Skip to content

Commit ba75f7e

Browse files
committed
削除が壊れてた
1 parent 4c7a50b commit ba75f7e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ RUN gem install --no-rdoc --no-ri bundler
1414

1515
WORKDIR /app
1616

17-
COPY . ./
17+
COPY Gemfile Gemfile.lock ./
1818
RUN bundle install
19-
2019
RUN apk del build
2120

21+
COPY . ./
22+
2223
EXPOSE 443
2324
CMD ["bundle", "exec", "thin", "--ssl", "--port", "443", "start"]

ui/js/components.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class Charm extends React.Component {
2020
{this.renderSkill(this.props.charm.skills[0])}
2121
{this.renderSkill(this.props.charm.skills[1])}
2222
<td>{"◯".repeat(this.props.charm.slot)}</td>
23-
{this.props.charm.onDelete ?
24-
<td><a onClick={this.props.charm.onDelete.bind(this)}><span className="glyphicon glyphicon-remove"/></a></td> :
23+
{this.props.onDelete ?
24+
<td><a onClick={this.props.onDelete.bind(this)}><span className="glyphicon glyphicon-remove"/></a></td> :
2525
null}
2626
</tr>
2727
);
@@ -114,7 +114,7 @@ class App extends React.Component {
114114

115115
deleteCharm(delIndex) {
116116
this.setState({
117-
charms: this.state.charms.filter(_, index => index != delIndex)
117+
charms: this.state.charms.filter((_, index) => index != delIndex)
118118
});
119119
}
120120

0 commit comments

Comments
 (0)