mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-04 12:03:44 +00:00
Corriger les erreurs vue-tsc dans Chill
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, watch, defineProps, defineEmits } from "vue";
|
||||
import { ref, watch } from "vue";
|
||||
|
||||
// Components
|
||||
import PickEntity from "ChillMainAssets/vuejs/PickEntity/PickEntity.vue";
|
||||
|
||||
@@ -39,7 +39,7 @@ import { StoredObject } from "ChillDocStoreAssets/types";
|
||||
import { useStore } from "vuex";
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue?: string;
|
||||
modelValue: string;
|
||||
motive?: MotiveWithParent | null;
|
||||
}>();
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
name:
|
||||
currentPersons.length > 0
|
||||
? currentPersons.map((person: Person) => person.text).join(", ")
|
||||
: undefined,
|
||||
: "",
|
||||
})
|
||||
}}
|
||||
</h3>
|
||||
|
||||
@@ -142,7 +142,7 @@ final readonly class ImportMotivesFromDirectory
|
||||
// Support parent > child notation in the current language label
|
||||
$parentName = null;
|
||||
$childName = trim($labelForSearch);
|
||||
if (false !== strpos($childName, '>')) {
|
||||
if (str_contains($childName, '>')) {
|
||||
[$parentName, $childName] = array_map('trim', explode('>', $childName, 2));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user