Skip to content

Commit

Permalink
Fix modelValue warnings in console
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminCharmes committed Dec 10, 2024
1 parent 73713b1 commit 4b749f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/CompactConstituentTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export default {
},
props: {
modelValue: {
type: String,
default: "",
type: [String, Object],
default: () => {},
},
typesToQuery: {
type: Array,
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/FormattedItemName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default {
ChemicalFormula,
},
props: {
item_id: { type: String, required: true },
itemType: { type: String, required: true },
item_id: { type: String, required: true, default: "" },
itemType: { type: String, required: true, default: "" },
selecting: {
type: Boolean,
default: false,
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/ToggleableCollectionFormGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export default {
},
props: {
modelValue: {
type: String,
default: "",
type: [Array, String],
default: () => [],
},
},
emits: ["update:modelValue"],
Expand Down

0 comments on commit 4b749f5

Please sign in to comment.