Commit a422ad5d authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Se eliminó la solución temporal de la url de la api

parent a9186774
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -3,12 +3,6 @@ import { StateEntity } from "../../domain/entities/state_entity";
import { StateModel } from "../models/prod/states_model";

export const stateModelToEntity = (stateModel: StateModel): StateEntity => {
    //TODO: Fix this
    let imageURL = stateModel.imageURL.split('/');
    imageURL = imageURL.filter((item) => item !== '' && item !== 'http:' && item !== 'https:');
    imageURL[0] = API_URL;
    stateModel.imageURL = imageURL.join('/');
    console.log(stateModel.imageURL);
    return {
        id: stateModel.stateId,
        name: stateModel.name,