You know, I was like, Toby, I finally displayed items in the sidebar in this lecture, I'll be working
on something else.
It shouldn't take too much time.
So let's start.
Let's open here, your crystal ball TSX and what I've been mentioning in the last lecture that I would
like to move, this is empty functionality to its own file.
So let's do it simply.
Let's remove this entire statement.
Here is data.
We can still keep it here, but let's go to our use card, OK?
Because the data we are returning from a used card, so let's got to use card to our framework folder
to our shapefile.
Let's go to our card.
Use Katia's.
And simply will be returning this data here, so specify here that I want to return from here.
I want to return from here.
This texturized data plus I would like to add I would like to add here is empty like this.
And it will be my this will be my statement.
I will be checking for allied items and so on.
OK, yeah.
So maybe complaining here.
I we need to act differently in this case, all the talk is like this lets me see the date or the date,
the line items and not very nice.
Well, this picture as they are here like this, let's take them here and we'll simply access data like
this.
All right.
Your question mark, because they can be undefined and perfect.
I was complaining because they are passing here also is empty.
And they they don't like it because the S.W. response doesn't specify here is empty.
So we need to inform our times about this.
So let's go to our common folder to all types who exotics, OK?
And we just simply need to extend our S.W. response that we will accept also this type I will separate
into its own type so that your export export type, it is called as the response, I will call it as
W are Halk.
A responses will be our customer, OK, it will receive a data, OK, so it will receive a data and
it will be simply as responsible.
We are sitting here.
OK, and.
Let me see, we are a simulator here so data can be replaced here.
Data can be replaced here.
Perfect.
And now I can just simply replace this response here and here.
I don't need to pass a second value because I'm already passing it here.
So I just I can rebuild any and any here and I can react now.
I can understand extended.
OK, so I can say here my NSWRL response is the type of the NSWRL response or response we had previously
and we are there also is empty, which is a boolean.
OK, and they should, they should fix it.
So yeah, let's say let's go back to use card and yeah it's still, it's still not very happy.
Let me see.
Vibro Rivera as a hawk as WRGA response responses here we are returning as a response which is now defining
also is empty taip defining as the response and it's empty.
So maybe the issue is in the end somewhere else.
Let's be verified.
So let's go back here.
All right, so why are you complaining type?
All right, so let me see type empty bullying and I think a lot missing, seeing the following properties
from this response card they mutate is valid.
They think, ah, OK.
OK, my mistake.
I clicked on this picture here because the structure is here and basically extracting only data from
this as the response and the data time returning here.
But I would like to get the full package, OK, because they drop your data off the card.
Right.
We need to get here.
The entire data which is available now in this response and the response we have, our data on this
entire area is empty.
And you can see now what we have here also is empty because we depend on new types and it will be working.
OK, so it is simply called the response or result or something like this.
OK, so a result or whatever doesn't really matter.
But now we need to restructure as a result and to act as the result.
Dot data line items.
The other question mark, because it's going to be undefined and also just changes, then the result
will change.
OK, so these are as a result, we have added they're also options is empty.
We have extended it is empty.
So now should be notified that they should receive that is empty.
We are looking for it here.
Perfect.
And now in that sidebar, that card sidebar, we can simply remove this part here.
OK, and we'll be extracted from that use cart is empty and everything will work as before.
So we've been able to save it.
Let's go back to browser's.
So refreshing it should be without any problems open here, the Castlebar and here it is, Auriga,
so that's going to be it from this one in the next Electoral County and will be displaying the better
standing for our items.
So that's going to be the next one.
Year.