Skip to content

Commit

Permalink
#50 Fix editing of attributes with hyphenated name
Browse files Browse the repository at this point in the history
  • Loading branch information
dnknth committed Feb 11, 2024
1 parent 9018f3d commit 9dc116b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN npm audit && npm i && npm run build
FROM alpine:3
COPY --from=builder /app/dist /app/dist
RUN apk add --no-cache python3 py3-pip py3-pyldap py3-pytoml \
&& pip3 install python-dotenv Quart
&& pip3 install --break-system-packages python-dotenv Quart
COPY app.py settings.py /app/

WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions src/components/editor/AttributeRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
function update(evt) {
const value = evt.target.value,
index = +evt.target.id.split('-')[1];
index = +evt.target.id.split('-').slice(-1).pop();
let values = props.values.slice();
values[index] = value;
emit('update', props.attr.name, values);
Expand Down Expand Up @@ -220,7 +220,7 @@
// use an auto-completion choice
function complete(dn) {
const index = +elementId.value.split('-')[1];
const index = +elementId.value.split('-').slice(-1).pop();
let values = props.values.slice();
values[index] = dn;
query.value = '';
Expand Down

0 comments on commit 9dc116b

Please sign in to comment.