rename type to model

This commit is contained in:
2022-02-25 22:16:41 +00:00
parent 4ed15b740b
commit 32439e3e87
3 changed files with 8 additions and 7 deletions

View File

@@ -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 || [];