Hello, I have foreign income in 2022 when I wasn’t a resident in Canada. I have paid the taxes in the UK, but my tax return is applying taxes on this income too?

I did include my foreign income in my return, and I did include the amount of foreign income tax paid. However it doesn’t appear that this is taken into consideration when calculating my balance due. Do I need to submit this tax return and apply for a foreign tax credit after?