1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🐛 Fix arrayExclude creating an empty slot instead of splicing

This commit is contained in:
Steffo 2021-11-08 16:25:21 +01:00 committed by Stefano Pigozzi
parent 38a9b8baef
commit 4111d56c06
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<envs> <envs>
<env name="PYTHONUNBUFFERED" value="1" /> <env name="PYTHONUNBUFFERED" value="1" />
<env name="DJANGO_ALLOWED_ORIGINS" value="http://dev.sophon.steffo.eu" /> <env name="DJANGO_ALLOWED_ORIGINS" value="http://dev.sophon.steffo.eu|http://localhost:3000" />
<env name="DJANGO_PROXY_BASE_DOMAIN" value="dev.sophon.steffo.eu" /> <env name="DJANGO_PROXY_BASE_DOMAIN" value="dev.sophon.steffo.eu" />
<env name="DJANGO_PROXY_PROTOCOL" value="http" /> <env name="DJANGO_PROXY_PROTOCOL" value="http" />
<env name="DJANGO_STATIC_URL" value="/static/" /> <env name="DJANGO_STATIC_URL" value="/static/" />

View file

@ -7,6 +7,6 @@ export function arrayExtension<T>(array: Array<T>, index: number, newValue: T):
export function arrayExclude<T>(array: Array<T>, index: number): Array<T> { export function arrayExclude<T>(array: Array<T>, index: number): Array<T> {
const clone = [...array] const clone = [...array]
delete clone[index] clone.splice(index, 1)
return clone return clone
} }