mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🐛 Fix arrayExclude
creating an empty slot instead of splicing
This commit is contained in:
parent
38a9b8baef
commit
4111d56c06
2 changed files with 2 additions and 2 deletions
|
@ -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/" />
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue