Skip to content

Commit 38a19a7

Browse files
committed
feat: add new row on top
1 parent 0356271 commit 38a19a7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.3.0",
3+
"version": "1.3.0-beta-3",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/TagsKeyValueTable/TagsContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const TagsKeyValueTable = ({
6464
action: `${appType.toUpperCase()}_ADD_TAG_BUTTON_CLICKED`,
6565
})
6666
const newEmptyRow = getEmptyRow()
67-
const editedRows = [...rows, newEmptyRow]
67+
const editedRows = [newEmptyRow, ...rows]
6868
setRows(editedRows)
6969
}
7070

0 commit comments

Comments
 (0)