Skip to content

Commit 3b41de7

Browse files
committed
remove project default listener in timeentry edit modal
1 parent 9fe0ea5 commit 3b41de7

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

resources/js/packages/ui/src/TimeEntry/TimeEntryEditModal.vue

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,6 @@ watch(
6868
{ immediate: true }
6969
);
7070
71-
watch(
72-
() => editableTimeEntry.value?.project_id,
73-
(value) => {
74-
if (value && editableTimeEntry.value) {
75-
// check if project is billable by default and set billable accordingly
76-
const project = props.projects.find((p) => p.id === value);
77-
if (project) {
78-
editableTimeEntry.value.billable = project.is_billable;
79-
}
80-
}
81-
}
82-
);
83-
8471
const localStart = computed({
8572
get: () =>
8673
editableTimeEntry.value ? getLocalizedDayJs(editableTimeEntry.value.start).format() : '',

0 commit comments

Comments
 (0)