diff --git a/api/src/services/payload.ts b/api/src/services/payload.ts index 59e68f17d3..46ca5dfdd4 100644 --- a/api/src/services/payload.ts +++ b/api/src/services/payload.ts @@ -305,7 +305,7 @@ export class PayloadService { } if (dateColumn.type === 'date') { - const [year, month, day] = value.toISOString().substr(0, 10).split('-'); + const [year, month, day] = value.toISOString().slice(0, 10).split('-'); // Strip off the time / timezone information from a date-only value const newValue = `${year}-${month}-${day}`; diff --git a/app/src/components/v-field-template/v-field-template.vue b/app/src/components/v-field-template/v-field-template.vue index 696189b055..ce1f211a9e 100644 --- a/app/src/components/v-field-template/v-field-template.vue +++ b/app/src/components/v-field-template/v-field-template.vue @@ -223,8 +223,8 @@ export default defineComponent({ const startOffset = range.startOffset; - const left = start.textContent?.substr(0, startOffset) || ''; - const right = start.textContent?.substr(startOffset) || ''; + const left = start.textContent?.slice(0, startOffset) || ''; + const right = start.textContent?.slice(startOffset) || ''; start.innerText = left; diff --git a/app/src/interfaces/select-color/select-color.vue b/app/src/interfaces/select-color/select-color.vue index e302616f9e..126626be7d 100644 --- a/app/src/interfaces/select-color/select-color.vue +++ b/app/src/interfaces/select-color/select-color.vue @@ -13,7 +13,7 @@