Skip to content

Commit

Permalink
Web: Fix issues in adding attribute during upload (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 authored Oct 6, 2022
1 parent 8735908 commit 6dc0d9c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
depends_on:
- postgres
- redis
image: certpl/mwdb:v2.8.0
image: certpl/mwdb:v2.8.1
restart: on-failure
env_file:
# NOTE: use gen_vars.sh in order to generate this file
Expand All @@ -22,7 +22,7 @@ services:
build:
context: .
dockerfile: deploy/docker/Dockerfile-web
image: certpl/mwdb-web:v2.8.0
image: certpl/mwdb-web:v2.8.1
ports:
- "80:80"
restart: on-failure
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
author = 'CERT Polska'

# The full version, including alpha/beta/rc tags
release = '2.8.0'
release = '2.8.1'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion mwdb/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
except IOError:
git_revision = ""

app_version = "2.8.0"
app_version = "2.8.1"
app_build_version = f"{app_version}+{git_revision}" if git_revision else app_version
4 changes: 2 additions & 2 deletions mwdb/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mwdb/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mwdb-web",
"version": "2.8.0",
"version": "2.8.1",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion mwdb/web/src/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@mwdb-web/commons",
"main": "index.js",
"private": true,
"version": "2.8.0",
"version": "2.8.1",
"peerDependencies": {
"@fortawesome/react-fontawesome": "*",
"bootstrap-select": "*",
Expand Down
4 changes: 2 additions & 2 deletions mwdb/web/src/components/Upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ export default function Upload() {
};

const onAttributeAdd = (key, value) => {
for (let attr of this.state.attributes)
for (let attr of attributes)
if (attr.key === key && attr.value === value) {
// that key, value was added yet
setAttributeModalOpen(false);
return;
}
setAttributes([...attributes, { key: value }]);
setAttributes([...attributes, { key, value }]);
setAttributeModalOpen(false);
};

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""

setup(name="mwdb-core",
version="2.8.0",
version="2.8.1",
description="MWDB Core malware database",
long_description=LONG_DESCRIPTION,
author="CERT Polska",
Expand Down

0 comments on commit 6dc0d9c

Please sign in to comment.