Skip to content

Commit

Permalink
Fix accidental broken 1.26.2 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrichar1 committed Aug 17, 2023
1 parent 473312a commit f0e16f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uoe-eng/tabularasa",
"version": "1.26.2",
"version": "1.26.3",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --target lib --name tabularasa src/index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/components/TRDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ const onSave = () => {
emit('close')
}
watch(validFields.value, (newValid) => {
// If there are any False values in valid, disable Save button
if (Object.values(newValid).some((x) => x === false)) {
watch([newItem, validFields.value], ([nNewItem, newValid]) => {
// If there are no edits, or any False values in valid, disable Save button
if (Object.keys(nNewItem).length == 0 || Object.values(newValid).some((x) => x === false)) {
saveDisabled.value = true
} else {
saveDisabled.value = false
Expand Down

0 comments on commit f0e16f1

Please sign in to comment.