rename type to model
This commit is contained in:
@@ -11,7 +11,7 @@ export interface Suggestion {
|
||||
const props = defineProps<{
|
||||
text: String,
|
||||
id: String | undefined,
|
||||
type: String
|
||||
model: String
|
||||
}>();
|
||||
|
||||
const SearchQuery = ref(props.text || "");
|
||||
@@ -29,7 +29,7 @@ function load(text: String) {
|
||||
}
|
||||
|
||||
const budgetStore = useBudgetsStore();
|
||||
GET("/budget/" + budgetStore.CurrentBudgetID + "/autocomplete/" + props.type + "?s=" + text)
|
||||
GET("/budget/" + budgetStore.CurrentBudgetID + "/autocomplete/" + props.model + "?s=" + text)
|
||||
.then(x => x.json())
|
||||
.then(x => {
|
||||
let suggestions = x || [];
|
||||
|
Reference in New Issue
Block a user