Skip to content

Commit

Permalink
fix: invalid zenodo selector form
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Oct 11, 2024
1 parent d93d321 commit cf4f40c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ui/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ declare module 'vue' {
NCollapse: typeof import('naive-ui')['NCollapse']
NCollapseItem: typeof import('naive-ui')['NCollapseItem']
NDivider: typeof import('naive-ui')['NDivider']
NDropdown: typeof import('naive-ui')['NDropdown']
NFlex: typeof import('naive-ui')['NFlex']
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
Expand All @@ -27,6 +28,9 @@ declare module 'vue' {
NRadioButton: typeof import('naive-ui')['NRadioButton']
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
NSelect: typeof import('naive-ui')['NSelect']
NSpin: typeof import('naive-ui')['NSpin']
NTag: typeof import('naive-ui')['NTag']
NTooltip: typeof import('naive-ui')['NTooltip']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
Expand Down
4 changes: 2 additions & 2 deletions ui/pages/dashboard/[owner]/[repo]/release/zenodo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ const startZenodoPublishProcess = async (shouldPublish: boolean = false) => {
const validateZenodoForm = () => {
zenodoFormRef.value?.validate((errors) => {
if (!errors) {
// Check if the selected zenodo deposition is an actual option
if (selectedDeposition.value?.toString() !== "new") {
// Check if the selected zenodo deposition is an actual option'
if (selectedExistingDeposition.value !== "new") {
if (
selectableDepositions.value.find(
(item) => item.value === selectedDeposition.value?.toString(),
Expand Down

0 comments on commit cf4f40c

Please sign in to comment.