mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(client): selector return, invalid prop val (#49447)
* fix(client): correctly return type from selector * fix(client): remove incorrect prop [button-spacer]
This commit is contained in:
@@ -103,7 +103,6 @@ export const StrictSolutionForm = ({
|
||||
<FormFields formFields={formFields} options={options} />
|
||||
<BlockSaveButton
|
||||
disabled={(pristine && !enableSubmit) || (error as boolean)}
|
||||
bgSize='none'
|
||||
>
|
||||
{buttonText}
|
||||
</BlockSaveButton>
|
||||
|
||||
@@ -101,6 +101,10 @@ export const currentBlockIdsSelector = state => {
|
||||
challengeType
|
||||
);
|
||||
|
||||
if (!currentBlockIds) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return currentBlockIds;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user